Merge branch 'MDL-33294' of git://github.com/danpoltawski/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-06-19 02:59:46 +02:00
commit f98973c2ff
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;
}