diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php
index bcd3e1747d..fc8665d420 100755
--- a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php
+++ b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php
@@ -10,44 +10,38 @@
* @since 31/December/2008
*/
- include ('../../../../../../inc/global.inc.php'); // Integrating with Chamilo
+ include '../../../../../../inc/global.inc.php'; // Integrating with Chamilo
api_block_anonymous_users();// from Chamilo
- require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
+ require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
//$session->gc(); // Disabled for integration with Chamilo
- require_once(CLASS_SESSION_ACTION);
+ require_once CLASS_SESSION_ACTION;
$sessionAction = new SessionAction();
- if(CONFIG_LOAD_DOC_LATTER)
- {
+
+ if (CONFIG_LOAD_DOC_LATTER) {
$fileList = array();
$folderInfo = array('path'=>getCurrentFolderPath());
- }else
- {
+ } else {
require_once(CLASS_MANAGER);
-
-
$manager = new manager();
$manager->setSessionAction($sessionAction);
$fileList = $manager->getFileList();
$folderInfo = $manager->getFolderInfo();
}
- if(CONFIG_SYS_THUMBNAIL_VIEW_ENABLE)
- {
+
+ if(CONFIG_SYS_THUMBNAIL_VIEW_ENABLE) {
$views = array(
'detail'=>LBL_BTN_VIEW_DETAILS,
'thumbnail'=>LBL_BTN_VIEW_THUMBNAIL,
);
- }else
- {
- $views = array(
- 'detail'=>LBL_BTN_VIEW_DETAILS,
- );
+ } else {
+ $views = array(
+ 'detail'=>LBL_BTN_VIEW_DETAILS,
+ );
}
- if(!empty($_GET['view']))
- {
- switch($_GET['view'])
- {
+ if(!empty($_GET['view'])) {
+ switch($_GET['view']) {
case 'detail':
case 'thumbnail':
$view = $_GET['view'];
@@ -55,11 +49,9 @@
default:
$view = CONFIG_DEFAULT_VIEW;
}
- }else
- {
+ } else {
$view = CONFIG_DEFAULT_VIEW;
- }
-
+ }
?>
@@ -238,16 +230,11 @@ $(document).ready(
- - +
- - - - + + - - - + - - +