parse error

This commit is contained in:
zotlabs 2019-10-03 12:56:49 -07:00
parent 779718e9f1
commit b560f7b9ab
3 changed files with 4 additions and 5 deletions

View file

@ -2,6 +2,7 @@
namespace Zotlabs\Lib;
use App;
use Zotlabs\Access\Permissions;
use Zotlabs\Daemon\Master;

View file

@ -81,9 +81,8 @@ class Cal extends Controller {
nav_set_selected('Calendar');
$sql_extra = permissions_sql($channel['channel_id'],get_observer_hash(),'event');
$first_day = get_pconfig(local_channel(),'system','cal_first_day');
$first_day = (($first_day) ? $first_day : 0);
$first_day = intval(get_pconfig($channel['channel_id'],'system','cal_first_day',0));
$htpl = get_markup_template('event_head.tpl');
\App::$page['htmlhead'] .= replace_macros($htpl,array(

View file

@ -314,8 +314,7 @@ class Events extends Controller {
);
}
$first_day = get_pconfig(local_channel(),'system','cal_first_day');
$first_day = (($first_day) ? $first_day : 0);
$first_day = intval(get_pconfig(local_channel(),'system','cal_first_day',0));
$htpl = get_markup_template('event_head.tpl');
App::$page['htmlhead'] .= replace_macros($htpl,array(