Hiding the gradebook tab option in Portal administration

skala
Julio Montoya 16 years ago
parent cfc5294631
commit 1853c92c77
  1. 5
      main/admin/settings.php

@ -18,7 +18,7 @@ if ($_GET['category']=='Templates') {
} }
// resetting the course id // resetting the course id
$cidReset=true; $cidReset=true;
// including some necessary dokeos files // including some necessary chamilo files
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php'; require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
@ -217,6 +217,9 @@ if (!empty($_GET['category']) && !in_array($_GET['category'], array('Plugins', '
if ($rowkeys['variable'] == 'show_tabs' && $rowkeys['subkey'] == 'my_profile') {continue;} if ($rowkeys['variable'] == 'show_tabs' && $rowkeys['subkey'] == 'my_profile') {continue;}
} }
//hiding the gradebook option
if ($rowkeys['variable'] == 'show_tabs' && $rowkeys['subkey'] == 'my_gradebook') {continue;}
$element = & $form->createElement('checkbox', $rowkeys['subkey'], '', get_lang($rowkeys['subkeytext'])); $element = & $form->createElement('checkbox', $rowkeys['subkey'], '', get_lang($rowkeys['subkeytext']));
if ($row['access_url_changeable']==1) { if ($row['access_url_changeable']==1) {
//2. we look into the DB if there is a setting for a specific access_url //2. we look into the DB if there is a setting for a specific access_url

Loading…
Cancel
Save