From bbab3efc17edfbba657193dece3fbd5e1bf77a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Sun, 18 Jan 2009 19:26:57 +0100 Subject: [PATCH] [svn r17799] Restoration of the button Wiki bar destroyed again by 17787 --- main/wiki/index.php | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) 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