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

Make codechecker happier

parent 81f0d4d0
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define(['jquery', 'core/str'], function($, str) {
"use strict";
......
......@@ -27,6 +27,8 @@ define(['jquery', 'core/str', 'core/modal_factory', 'core/modal_events', 'core/n
/**
* Initialising.
*
* @param {string} showconfirmationdialogue
*/
function initInfoBanner(showconfirmationdialogue) {
......
......@@ -109,9 +109,11 @@ class core_renderer extends \core_renderer {
return $this->image_url('favicon', 'theme');
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START.
return $this->image_url('favicon', 'theme');
ORIGINAL END. */
// @codingStandardsIgnoreEnd
}
......@@ -150,9 +152,11 @@ class core_renderer extends \core_renderer {
$header->settingsmenu = $this->context_header_settings_menu();
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START
$header->settingsmenu = $this->context_header_settings_menu();
ORIGINAL END. */
// @codingStandardsIgnoreEnd
$header->contextheader = $this->context_header();
$header->hasnavbar = empty($this->page->layout_options['nonavbar']);
$header->navbar = $this->navbar();
......@@ -180,9 +184,11 @@ class core_renderer extends \core_renderer {
}
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START
$header->pageheadingbutton = $this->page_heading_button();
ORIGINAL END. */
// @codingStandardsIgnoreEnd
$header->courseheader = $this->course_header();
$header->headeractions = $this->page->get_header_actions();
// MODIFICATION START:
......@@ -194,9 +200,11 @@ class core_renderer extends \core_renderer {
$html = $this->render_from_template('theme_boost_campus/full_header', $header);
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START
return $this->render_from_template('core/full_header', $header);
ORIGINAL END. */
// @codingStandardsIgnoreEnd
// MODIFICATION START:
// If the setting showhintcoursehidden is set, the visibility of the course is hidden and
......@@ -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 .= get_string('showhintcourseselfenrol', 'theme_boost_campus',
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))) {
$url = new moodle_url('/enrol/editinstance.php', array('courseid' => $COURSE->id,
'id' => $selfenrolinstanceid, 'type' => 'self'));
......@@ -465,9 +474,11 @@ class core_renderer extends \core_renderer {
return $this->render_from_template('core/loginform', $context);
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START.
return $this->render_from_template('core/loginform', $context);
ORIGINAL END. */
// @codingStandardsIgnoreEnd
}
/**
......@@ -491,9 +502,11 @@ class core_renderer extends \core_renderer {
return $this->render_from_template('core/help_icon', $context);
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START.
$context = $helpicon->export_for_template($this);
return $this->render_from_template('core/help_icon', $context);
ORIGINAL END. */
// @codingStandardsIgnoreEnd
}
}
......@@ -161,9 +161,7 @@ $string['imageareaitemsattributessetting_desc'] = 'With this optional setting yo
</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/>
For example:<br/>
```
moodle.jpg|https://moodle.org|Moodle logo
```<br/><br/>
<code>moodle.jpg|https://moodle.org|Moodle logo</code><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.';
$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.';
......
......@@ -174,9 +174,11 @@ if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes' && $PAGE->
$templatecontext['activitynode'] = theme_boost_campus_get_incourse_activity_settings();
}
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START.
$templatecontext['flatnavigation'] = $nav;
ORIGINAL END. */
// @codingStandardsIgnoreEnd
$templatecontext['firstcollectionlabel'] = $nav->get_collectionlabel();
......@@ -191,6 +193,8 @@ require_once(__DIR__ . '/includes/footnote.php');
// Render columns2.mustache from boost_campus.
echo $OUTPUT->render_from_template('theme_boost_campus/columns2', $templatecontext);
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START.
echo $OUTPUT->render_from_template('theme_boost/columns2', $templatecontext);
ORIGINAL END. */
// @codingStandardsIgnoreEnd
......@@ -103,6 +103,8 @@ require_once(__DIR__ . '/includes/footnote.php');
// Render own template.
echo $OUTPUT->render_from_template('theme_boost_campus/login', $templatecontext);
// MODIFICATION END.
// @codingStandardsIgnoreStart
/* ORIGINAL START.
echo $OUTPUT->render_from_template('theme_boost/login', $templatecontext);
ORIGINAL END. */
// @codingStandardsIgnoreEnd
......@@ -849,7 +849,7 @@ if ($ADMIN->fulltree) {
$settings->hide_if('theme_boost_campus/timedibcss',
'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])|^$/';
// 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