MDL-21249 improved php docs and adding direct access prevention in core libs
This commit is contained in:
@@ -21,11 +21,14 @@
|
||||
* Please see http://docs.moodle.org/en/Developement:How_Moodle_outputs_HTML
|
||||
* for an overview.
|
||||
*
|
||||
* @package moodlecore
|
||||
* @copyright 2009 Tim Hunt
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package core
|
||||
* @subpackage lib
|
||||
* @copyright 2009 Tim Hunt
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Simple base class for Moodle renderers.
|
||||
*
|
||||
@@ -2457,7 +2460,7 @@ EOD;
|
||||
* @return string
|
||||
*/
|
||||
protected function render_image_gallery(image_gallery $imagegallery) {
|
||||
$this->page->requires->yui_module(array('gallery-lightbox','gallery-lightbox-skin'),
|
||||
$this->page->requires->yui_module(array('gallery-lightbox','gallery-lightbox-skin'),
|
||||
'Y.Lightbox.init', null, '2010.04.08-12-35');
|
||||
if (count($imagegallery->images) == 0) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user