[svn r17799] Restoration of the button Wiki bar destroyed again by 17787

skala
Juan Carlos Raña 17 years ago
parent 600ba653a6
commit bbab3efc17
  1. 38
      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

Loading…
Cancel
Save