Skip to content
Snippets Groups Projects
Commit c52b8556 authored by Alexander Bias's avatar Alexander Bias
Browse files

Make codechecker happier

parent 6ec6d571
Branches
No related tags found
No related merge requests found
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
define(['jquery', 'core/str'], function($, str) { define(['jquery', 'core/str'], function($, str) {
"use strict"; "use strict";
......
...@@ -27,6 +27,8 @@ define(['jquery', 'core/str', 'core/modal_factory', 'core/modal_events', 'core/n ...@@ -27,6 +27,8 @@ define(['jquery', 'core/str', 'core/modal_factory', 'core/modal_events', 'core/n
/** /**
* Initialising. * Initialising.
*
* @param {string} showconfirmationdialogue
*/ */
function initInfoBanner(showconfirmationdialogue) { function initInfoBanner(showconfirmationdialogue) {
......
...@@ -109,9 +109,11 @@ class core_renderer extends \core_renderer { ...@@ -109,9 +109,11 @@ class core_renderer extends \core_renderer {
return $this->image_url('favicon', 'theme'); return $this->image_url('favicon', 'theme');
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START. /* ORIGINAL START.
return $this->image_url('favicon', 'theme'); return $this->image_url('favicon', 'theme');
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
} }
...@@ -150,9 +152,11 @@ class core_renderer extends \core_renderer { ...@@ -150,9 +152,11 @@ class core_renderer extends \core_renderer {
$header->settingsmenu = $this->context_header_settings_menu(); $header->settingsmenu = $this->context_header_settings_menu();
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START /* ORIGINAL START
$header->settingsmenu = $this->context_header_settings_menu(); $header->settingsmenu = $this->context_header_settings_menu();
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
$header->contextheader = $this->context_header(); $header->contextheader = $this->context_header();
$header->hasnavbar = empty($this->page->layout_options['nonavbar']); $header->hasnavbar = empty($this->page->layout_options['nonavbar']);
$header->navbar = $this->navbar(); $header->navbar = $this->navbar();
...@@ -180,9 +184,11 @@ class core_renderer extends \core_renderer { ...@@ -180,9 +184,11 @@ class core_renderer extends \core_renderer {
} }
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START /* ORIGINAL START
$header->pageheadingbutton = $this->page_heading_button(); $header->pageheadingbutton = $this->page_heading_button();
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
$header->courseheader = $this->course_header(); $header->courseheader = $this->course_header();
$header->headeractions = $this->page->get_header_actions(); $header->headeractions = $this->page->get_header_actions();
// MODIFICATION START: // MODIFICATION START:
...@@ -194,9 +200,11 @@ class core_renderer extends \core_renderer { ...@@ -194,9 +200,11 @@ class core_renderer extends \core_renderer {
$html = $this->render_from_template('theme_boost_campus/full_header', $header); $html = $this->render_from_template('theme_boost_campus/full_header', $header);
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START /* ORIGINAL START
return $this->render_from_template('core/full_header', $header); return $this->render_from_template('core/full_header', $header);
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
// MODIFICATION START: // MODIFICATION START:
// If the setting showhintcoursehidden is set, the visibility of the course is hidden and // If the setting showhintcoursehidden is set, the visibility of the course is hidden and
...@@ -266,7 +274,8 @@ class core_renderer extends \core_renderer { ...@@ -266,7 +274,8 @@ class core_renderer extends \core_renderer {
$html .= html_writer::tag('i', null, array('class' => 'fa fa-sign-in fa-3x fa-pull-left')); $html .= html_writer::tag('i', null, array('class' => 'fa fa-sign-in fa-3x fa-pull-left'));
$html .= get_string('showhintcourseselfenrol', 'theme_boost_campus', $html .= get_string('showhintcourseselfenrol', 'theme_boost_campus',
array('name' => $selfenrolinstancename)); array('name' => $selfenrolinstancename));
// Only show the link to edit the specific self enrolment if the user has the capability to config self enrolments. // Only show the link to edit the specific self enrolment if the user has the capability
// to config self enrolments.
if (has_capability('enrol/self:config', \context_course::instance($COURSE->id))) { if (has_capability('enrol/self:config', \context_course::instance($COURSE->id))) {
$url = new moodle_url('/enrol/editinstance.php', array('courseid' => $COURSE->id, $url = new moodle_url('/enrol/editinstance.php', array('courseid' => $COURSE->id,
'id' => $selfenrolinstanceid, 'type' => 'self')); 'id' => $selfenrolinstanceid, 'type' => 'self'));
...@@ -465,9 +474,11 @@ class core_renderer extends \core_renderer { ...@@ -465,9 +474,11 @@ class core_renderer extends \core_renderer {
return $this->render_from_template('core/loginform', $context); return $this->render_from_template('core/loginform', $context);
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START. /* ORIGINAL START.
return $this->render_from_template('core/loginform', $context); return $this->render_from_template('core/loginform', $context);
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
} }
/** /**
...@@ -491,9 +502,11 @@ class core_renderer extends \core_renderer { ...@@ -491,9 +502,11 @@ class core_renderer extends \core_renderer {
return $this->render_from_template('core/help_icon', $context); return $this->render_from_template('core/help_icon', $context);
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START. /* ORIGINAL START.
$context = $helpicon->export_for_template($this); $context = $helpicon->export_for_template($this);
return $this->render_from_template('core/help_icon', $context); return $this->render_from_template('core/help_icon', $context);
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
} }
} }
...@@ -161,9 +161,7 @@ $string['imageareaitemsattributessetting_desc'] = 'With this optional setting yo ...@@ -161,9 +161,7 @@ $string['imageareaitemsattributessetting_desc'] = 'With this optional setting yo
</ul> </ul>
Each line consists of the file identifier (the file name) the link URL and the alt-text, separated by pipe characters. Each link declaration needs to be written in a new line. <br/> Each line consists of the file identifier (the file name) the link URL and the alt-text, separated by pipe characters. Each link declaration needs to be written in a new line. <br/>
For example:<br/> For example:<br/>
``` <code>moodle.jpg|https://moodle.org|Moodle logo</code><br/><br/>
moodle.jpg|https://moodle.org|Moodle logo
```<br/><br/>
You can declare the additional attributes for an arbitrary amount of your uploaded images. The attributes will be added only to those images that match their filename with the identifier declared in this setting.'; You can declare the additional attributes for an arbitrary amount of your uploaded images. The attributes will be added only to those images that match their filename with the identifier declared in this setting.';
$string['imageareaitemsmaxheightsetting'] = 'Image area items maximal height'; $string['imageareaitemsmaxheightsetting'] = 'Image area items maximal height';
$string['imageareaitemsmaxheightsetting_desc'] = 'With this setting you can change the height in pixels for your uploaded images. All images will have the same maximum height and their width will be resized proportionally. The default value is set to 100 pixels.'; $string['imageareaitemsmaxheightsetting_desc'] = 'With this setting you can change the height in pixels for your uploaded images. All images will have the same maximum height and their width will be resized proportionally. The default value is set to 100 pixels.';
......
...@@ -174,9 +174,11 @@ if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes' && $PAGE-> ...@@ -174,9 +174,11 @@ if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes' && $PAGE->
$templatecontext['activitynode'] = theme_boost_campus_get_incourse_activity_settings(); $templatecontext['activitynode'] = theme_boost_campus_get_incourse_activity_settings();
} }
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START. /* ORIGINAL START.
$templatecontext['flatnavigation'] = $nav; $templatecontext['flatnavigation'] = $nav;
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
$templatecontext['firstcollectionlabel'] = $nav->get_collectionlabel(); $templatecontext['firstcollectionlabel'] = $nav->get_collectionlabel();
...@@ -191,6 +193,8 @@ require_once(__DIR__ . '/includes/footnote.php'); ...@@ -191,6 +193,8 @@ require_once(__DIR__ . '/includes/footnote.php');
// Render columns2.mustache from boost_campus. // Render columns2.mustache from boost_campus.
echo $OUTPUT->render_from_template('theme_boost_campus/columns2', $templatecontext); echo $OUTPUT->render_from_template('theme_boost_campus/columns2', $templatecontext);
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START. /* ORIGINAL START.
echo $OUTPUT->render_from_template('theme_boost/columns2', $templatecontext); echo $OUTPUT->render_from_template('theme_boost/columns2', $templatecontext);
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
...@@ -103,6 +103,8 @@ require_once(__DIR__ . '/includes/footnote.php'); ...@@ -103,6 +103,8 @@ require_once(__DIR__ . '/includes/footnote.php');
// Render own template. // Render own template.
echo $OUTPUT->render_from_template('theme_boost_campus/login', $templatecontext); echo $OUTPUT->render_from_template('theme_boost_campus/login', $templatecontext);
// MODIFICATION END. // MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START. /* ORIGINAL START.
echo $OUTPUT->render_from_template('theme_boost/login', $templatecontext); echo $OUTPUT->render_from_template('theme_boost/login', $templatecontext);
ORIGINAL END. */ ORIGINAL END. */
// @codingStandardsIgnoreEnd
...@@ -849,7 +849,7 @@ if ($ADMIN->fulltree) { ...@@ -849,7 +849,7 @@ if ($ADMIN->fulltree) {
$settings->hide_if('theme_boost_campus/timedibcss', $settings->hide_if('theme_boost_campus/timedibcss',
'theme_boost_campus/timedibenable', 'notchecked'); 'theme_boost_campus/timedibenable', 'notchecked');
// This will check for the desired date time format YYYY-MM-DD HH:MM:SS // This will check for the desired date time format YYYY-MM-DD HH:MM:SS.
$timeregex = '/(20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])|^$/'; $timeregex = '/(20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])|^$/';
// Start time for controlled information banner. // Start time for controlled information banner.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment