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