Julio Montoya 15 years ago
parent
commit
7f586c93a7
2 changed files with 4 additions and 4 deletions
  1. 2 2
      main/admin/user_edit.php
  2. 2 2
      main/course_home/activity.php

+ 2 - 2
main/admin/user_edit.php

@@ -205,7 +205,7 @@ $form->addElement('html', '</div>');
 
 // Platform admin
 // Only when changing another user!
-if ($user_id != $_user['user_id']) {
+//if ($user_id != $_user['user_id']) {
 	$group = array();
 	$group[] =& HTML_QuickForm::createElement('radio', 'platform_admin', null, get_lang('Yes'), 1);
 	$group[] =& HTML_QuickForm::createElement('radio', 'platform_admin', null, get_lang('No'), 0);
@@ -215,7 +215,7 @@ if ($user_id != $_user['user_id']) {
 	$form->addElement('html', '<div id="id_platform_admin" style="display:'.$display.'">');
 	$form->addGroup($group, 'admin', get_lang('PlatformAdmin'), null, false);
 	$form->addElement('html', '</div>');
-}
+//}
 
 // Send email
 $group = array();

+ 2 - 2
main/course_home/activity.php

@@ -10,10 +10,10 @@
 *	visitor is allowed to activate, deactivate home page links,
 *	access to the teachers tools (statistics, edit forums...).
 *
-*	@package dokeos.course_home
+*	@package chamilo.course_home
 ==============================================================================
 */
-require_once '../../main/inc/global.inc.php';
+
 require_once api_get_path(LIBRARY_PATH).'course_home.lib.php';
 
 //	MAIN CODE