aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
committerredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
commit9abd95fad3784a10fc48bc40f9b8a75d7d74edda (patch)
tree3cf2eec6a29f384b80a8c607aa97172b84e37e62 /mod/events.php
parent256c228efd249f2ce93405db8e36f52030aa4876 (diff)
downloadvolse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.gz
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.bz2
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.zip
static App
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/events.php b/mod/events.php
index 30c083e4f..30cf5f303 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -116,7 +116,7 @@ function events_post(&$a) {
$share = ((intval($_POST['share'])) ? intval($_POST['share']) : 0);
- $channel = $a->get_channel();
+ $channel = App::get_channel();
$acl = new Zotlabs\Access\AccessList(false);
@@ -158,7 +158,7 @@ function events_post(&$a) {
}
$post_tags = array();
- $channel = $a->get_channel();
+ $channel = App::get_channel();
$ac = $acl->get();
if(strlen($categories)) {
@@ -281,17 +281,17 @@ function events_content(&$a) {
$first_day = (($first_day) ? $first_day : 0);
$htpl = get_markup_template('event_head.tpl');
- $a->page['htmlhead'] .= replace_macros($htpl,array(
+ App::$page['htmlhead'] .= replace_macros($htpl,array(
'$baseurl' => z_root(),
'$module_url' => '/events',
'$modparams' => 1,
- '$lang' => $a->language,
+ '$lang' => App::$language,
'$first_day' => $first_day
));
$o = '';
- $channel = $a->get_channel();
+ $channel = App::get_channel();
$mode = 'view';
$y = 0;
@@ -299,7 +299,7 @@ function events_content(&$a) {
$ignored = ((x($_REQUEST,'ignored')) ? " and ignored = " . intval($_REQUEST['ignored']) . " " : '');
- // logger('args: ' . print_r($a->argv,true));
+ // logger('args: ' . print_r(App::$argv,true));
@@ -340,7 +340,7 @@ function events_content(&$a) {
$orig_event = $r[0];
}
- $channel = $a->get_channel();
+ $channel = App::get_channel();
// Passed parameters overrides anything found in the DB
if(!x($orig_event))
@@ -571,7 +571,7 @@ function events_content(&$a) {
foreach($r as $rr) {
$j = (($rr['adjust']) ? datetime_convert('UTC',date_default_timezone_get(),$rr['start'], 'j') : datetime_convert('UTC','UTC',$rr['start'],'j'));
if(! x($links,$j))
- $links[$j] = z_root() . '/' . $a->cmd . '#link-' . $j;
+ $links[$j] = z_root() . '/' . App::$cmd . '#link-' . $j;
}
}
@@ -641,7 +641,7 @@ function events_content(&$a) {
killme();
}
- if ($a->argv[1] === 'json'){
+ if (App::$argv[1] === 'json'){
echo json_encode($events); killme();
}