Added spacing around '=>'
This commit is contained in:
parent
9e36732d5f
commit
47b79abf6c
3 changed files with 4 additions and 4 deletions
4
edit.php
4
edit.php
|
@ -38,8 +38,8 @@ $deletepage = optional_param('deletepage', 0, PARAM_INT);
|
|||
$confirm = optional_param('confirm', 0, PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('customcert', $cmid, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
|
||||
$customcert = $DB->get_record('customcert', array('id'=>$cm->instance), '*', MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$customcert = $DB->get_record('customcert', array('id' => $cm->instance), '*', MUST_EXIST);
|
||||
$context = context_module::instance($cm->id);
|
||||
|
||||
require_login($course, false, $cm);
|
||||
|
|
2
lib.php
2
lib.php
|
@ -289,7 +289,7 @@ function customcert_extend_settings_navigation(settings_navigation $settings, na
|
|||
|
||||
if (has_capability('mod/customcert:manage', $PAGE->cm->context)) {
|
||||
$node = navigation_node::create(get_string('editcustomcert', 'customcert'),
|
||||
new moodle_url('/mod/customcert/edit.php', array('cmid'=>$PAGE->cm->id)),
|
||||
new moodle_url('/mod/customcert/edit.php', array('cmid' => $PAGE->cm->id)),
|
||||
navigation_node::TYPE_SETTING, null, 'mod_customcert_edit',
|
||||
new pix_icon('t/edit', ''));
|
||||
$customcertnode->add_node($node, $beforekey);
|
||||
|
|
2
view.php
2
view.php
|
@ -33,7 +33,7 @@ $action = optional_param('action', '', PARAM_ALPHA);
|
|||
|
||||
$cm = get_coursemodule_from_id('customcert', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$customcert = $DB->get_record('customcert', array('id'=> $cm->instance), '*', MUST_EXIST);
|
||||
$customcert = $DB->get_record('customcert', array('id' => $cm->instance), '*', MUST_EXIST);
|
||||
|
||||
// Ensure the user is allowed to view this page.
|
||||
require_login($course, true, $cm);
|
||||
|
|
Loading…
Reference in a new issue