Skip to content

Commit

Permalink
MDL-50663 blocks: minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 21, 2015
1 parent 2d87c11 commit cce7558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/blocklib.php
Expand Up @@ -594,7 +594,7 @@ public function load_blocks($includeinvisible = null) {
$ccselect = ', ' . context_helper::get_preload_record_columns_sql('ctx'); $ccselect = ', ' . context_helper::get_preload_record_columns_sql('ctx');
$ccjoin = "LEFT JOIN {context} ctx ON (ctx.instanceid = bi.id AND ctx.contextlevel = :contextlevel)"; $ccjoin = "LEFT JOIN {context} ctx ON (ctx.instanceid = bi.id AND ctx.contextlevel = :contextlevel)";


$systemcontext = \context_system::instance(); $systemcontext = context_system::instance();
$params = array( $params = array(
'contextlevel' => CONTEXT_BLOCK, 'contextlevel' => CONTEXT_BLOCK,
'subpage1' => $this->page->subpage, 'subpage1' => $this->page->subpage,
Expand Down
2 changes: 1 addition & 1 deletion my/index.php
Expand Up @@ -103,7 +103,7 @@
} }


// Toggle the editing state and switches // Toggle the editing state and switches
if (!$CFG->forcedefaultmymoodle && $PAGE->user_allowed_editing()) { if (empty($CFG->forcedefaultmymoodle) && $PAGE->user_allowed_editing()) {
if ($reset !== null) { if ($reset !== null) {
if (!is_null($userid)) { if (!is_null($userid)) {
require_sesskey(); require_sesskey();
Expand Down

0 comments on commit cce7558

Please sign in to comment.