fix force report on current blog
This commit is contained in:
parent
c60fc54b83
commit
ee2aacda14
@ -194,6 +194,8 @@ if ($super) {
|
||||
$i++;
|
||||
}
|
||||
echo '</div>';
|
||||
} else {
|
||||
echo form::hidden('blogs[0]', dcCore::app()->blog->id);
|
||||
}
|
||||
echo '
|
||||
<div class="fieldset one-box" id="setting_report"><h4>' . __('Report') . '</h4>
|
||||
|
@ -121,7 +121,7 @@ class activityReport
|
||||
}
|
||||
}
|
||||
# Force blog
|
||||
$this->settings[0]['blogs'] = [1 => $this->blog];
|
||||
$this->settings[0]['blogs'] = [0 => $this->blog];
|
||||
}
|
||||
|
||||
public function getSetting($n)
|
||||
@ -563,7 +563,8 @@ class activityReport
|
||||
}
|
||||
// lock file
|
||||
if (!flock($fp, LOCK_EX | LOCK_NB)) {
|
||||
throw new Exception("Can't lock file");
|
||||
//throw new Exception("Can't lock file");
|
||||
return false;
|
||||
}
|
||||
if ($this->_global) {
|
||||
$this->lock_global = $fp;
|
||||
|
Loading…
Reference in New Issue
Block a user