mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-50663 blocks: minor style fixes
This commit is contained in:
parent
da001d4dba
commit
8930d28254
2 changed files with 2 additions and 2 deletions
|
@ -594,7 +594,7 @@ class block_manager {
|
||||||
$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,
|
||||||
|
|
|
@ -103,7 +103,7 @@ if (!isguestuser()) { // Skip default home page for guests
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue