mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
fixed undefined sitecontext
This commit is contained in:
parent
d91181dc67
commit
fd7a6fe2e3
@ -69,6 +69,8 @@ function blog_rss_add_http_header($context, $title, $filtertype, $filterselect=0
|
||||
function blog_rss_get_params($filters) {
|
||||
$thingid = $rsscontext = $filtertype = null;
|
||||
|
||||
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
|
||||
if (!$filters) {
|
||||
$thingid = SITEID;
|
||||
$rsscontext = $sitecontext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user