MDL-21147 do not use standard "get_x" methods for "magic" $PAGE stuff + fixed incorrect ->get_x uses

This commit is contained in:
Petr Skoda 2009-12-17 14:04:15 +00:00
parent a24318005c
commit 5515b53605
4 changed files with 65 additions and 65 deletions

View file

@ -231,7 +231,7 @@ function blog_get_context_url($context=null) {
if (empty($context)) {
global $PAGE;
$context = $PAGE->get_context();
$context = $PAGE->context;
}
// Change contextlevel to SYSTEM if viewing the site course