diff --git a/main/wiki/index.php b/main/wiki/index.php index 127869f7fb..b1115ea3d5 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -146,21 +146,6 @@ else // some titles are not allowed //$not_allowed_titles=array("Index", "RecentChanges","AllPages", "Categories"); //not used for now - -/* ------------------------------------------------------------ - Configuration settings ------------------------------------------------------------ -*/ - -$fck_attribute['Width'] = '100%'; -$fck_attribute['ToolbarSet'] = 'Wiki'; -if(!api_is_allowed_to_edit()) -{ - $fck_attribute['Config']['UserStatus'] = 'student'; -} - - /* ============================================================================== MAIN CODE @@ -175,18 +160,27 @@ if(!api_is_allowed_to_edit()) */ $fck_attribute['Width'] = '100%'; -$fck_attribute['Height'] = '400'; - - -$fck_attribute['Config']['InDocument'] = false; -$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/'; -$fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; -$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/'; +$fck_attribute['Height'] = '300'; +$fck_attribute['ToolbarSet'] = 'Full'; Display::display_introduction_section(TOOL_WIKI); $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. + +/* +----------------------------------------------------------- + Wiki configuration settings +----------------------------------------------------------- +*/ + +$fck_attribute['Width'] = '100%'; +$fck_attribute['ToolbarSet'] = 'Wiki'; +if(!api_is_allowed_to_edit()) +{ + $fck_attribute['Config']['UserStatus'] = 'student'; +} + /* ----------------------------------------------------------- ACTIONS