mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Merge branch 'MDL-33294' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
f98973c2ff
2 changed files with 8 additions and 0 deletions
|
@ -69,6 +69,10 @@ class block_blog_recent extends block_base {
|
|||
require_once($CFG->dirroot .'/blog/lib.php');
|
||||
require_once($CFG->dirroot .'/blog/locallib.php');
|
||||
|
||||
if (empty($this->config)) {
|
||||
$this->config = new stdClass();
|
||||
}
|
||||
|
||||
if (empty($this->config->recentbloginterval)) {
|
||||
$this->config->recentbloginterval = 8400;
|
||||
}
|
||||
|
|
|
@ -93,6 +93,10 @@ class block_blog_tags extends block_base {
|
|||
// require the libs and do the work
|
||||
require_once($CFG->dirroot .'/blog/lib.php');
|
||||
|
||||
if (empty($this->config)) {
|
||||
$this->config = new stdClass();
|
||||
}
|
||||
|
||||
if (empty($this->config->timewithin)) {
|
||||
$this->config->timewithin = BLOCK_BLOG_TAGS_DEFAULTTIMEWITHIN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue