$course = SITEID;
}
- if ($CFG->bloglevel < BLOG_USER_LEVEL) {
+ if (empty($CFG->bloglevel)) {
$this->content->text = '';
return $this->content;
}
global $CFG, $SITE, $COURSE;
+ if (empty($CFG->bloglevel)) {
+ $this->content->text = '';
+ return $this->content;
+ }
+
if (empty($this->config->timewithin)) {
$this->config->timewithin = BLOGDEFAULTTIMEWITHIN;
}
$courseid = optional_param('courseid', SITEID, PARAM_INT);
$act = optional_param('act','',PARAM_ALPHA);
+if (empty($CFG->bloglevel)) {
+ error('Blogging is disabled!');
+}
+
// detemine where the user is coming from in case we need to send them back there
if (!$referrer = optional_param('referrer','', PARAM_URL)) {
if (isset($_SERVER['HTTP_REFERER'])) {
$filtertype = optional_param('filtertype', '', PARAM_ALPHA);
$filterselect = optional_param('filterselect', 0, PARAM_INT);
+if (empty($CFG->bloglevel)) {
+ error('Blogging is disabled!');
+}
/// overwrite filter code here
require_login();
global $USER;
+ if (empty($CFG->bloglevel)) {
+ error('Blogging is disabled!');
+ }
+
// detemine where the user is coming from in case we need to send them back there
if (!$referrer = optional_param('referrer','', PARAM_URL)) {
require_once('../config.php');
+ if (empty($CFG->bloglevel)) {
+ error('Blogging is disabled!');
+ }
+
$referrer = required_param('referrer', PARAM_URL);
if (isset($SESSION->blog_editing_enabled)) {
//form process
$mode = optional_param('mode','',PARAM_ALPHA);
+if (empty($CFG->bloglevel)) {
+ error('Blogging is disabled!');
+}
+
$context = get_context_instance(CONTEXT_SYSTEM, SITEID);