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 da001d4 commit 8930d28
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
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ public function load_blocks($includeinvisible = null) {
$ccselect = ', ' . context_helper::get_preload_record_columns_sql('ctx');
$ccjoin = "LEFT JOIN {context} ctx ON (ctx.instanceid = bi.id AND ctx.contextlevel = :contextlevel)";

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

// 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 (!is_null($userid)) {
require_sesskey();
Expand Down

0 comments on commit 8930d28

Please sign in to comment.