mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-21147 do not use standard "get_x" methods for "magic" $PAGE stuff + fixed incorrect ->get_x uses
This commit is contained in:
parent
a24318005c
commit
5515b53605
4 changed files with 65 additions and 65 deletions
|
@ -54,7 +54,7 @@ class block_blog_menu extends block_base {
|
|||
function get_content() {
|
||||
global $CFG, $USER, $PAGE, $OUTPUT;
|
||||
|
||||
$context = $PAGE->get_context();
|
||||
$context = $PAGE->context;
|
||||
|
||||
// don't display menu block if block is set at site level, and user is not logged in
|
||||
if (empty($CFG->bloglevel) || ($CFG->bloglevel < BLOG_GLOBAL_LEVEL && !(isloggedin() && !isguestuser()))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue