MDL-21249 improved php docs and adding direct access prevention in core libs

This commit is contained in:
Petr Skoda
2010-07-25 13:35:05 +00:00
parent 2ac619c1e0
commit 78bfb562a0
70 changed files with 388 additions and 215 deletions
+7 -5
View File
@@ -29,12 +29,14 @@
* Major Contributors
* - Alex Smith, Julian Sedding and Gustav Delius {@link http://maths.york.ac.uk/serving_maths}
*
* @package moodlecore
* @package core
* @subpackage question
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/// CONSTANTS ///////////////////////////////////
/**#@+
@@ -2500,8 +2502,8 @@ function question_category_options($contexts, $top = false, $currentcat = 0, $po
foreach ($categoriesarray as $contextstring => $optgroup){
$group = array();
foreach ($optgroup as $key=>$value) {
$key = str_replace($CFG->wwwroot, '', $key);
$group[$key] = $value;
$key = str_replace($CFG->wwwroot, '', $key);
$group[$key] = $value;
}
$popupcats[] = array($contextstring=>$group);
}