diff options
author | Paolo Tacconi <p.tacconi@giunti.it> | 2016-04-15 09:20:58 +0200 |
---|---|---|
committer | Paolo Tacconi <p.tacconi@giunti.it> | 2016-04-15 09:20:58 +0200 |
commit | 45a854762b451dafb882bc56efce054b64420627 (patch) | |
tree | 958fcd22f04546f40b6ac68bb58cfe1a1b1fb7f6 /mod/chanview.php | |
parent | 1806da0851dd5cf5978b19d12783ae3101a11257 (diff) | |
parent | a29c0371f1f3cceb9a9af3a62e5ed67886869c40 (diff) | |
download | volse-hubzilla-45a854762b451dafb882bc56efce054b64420627.tar.gz volse-hubzilla-45a854762b451dafb882bc56efce054b64420627.tar.bz2 volse-hubzilla-45a854762b451dafb882bc56efce054b64420627.zip |
Resolved conflict in view/it/hstrings.php
Diffstat (limited to 'mod/chanview.php')
-rw-r--r-- | mod/chanview.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/chanview.php b/mod/chanview.php index 0cbcb2e57..705fb5a7d 100644 --- a/mod/chanview.php +++ b/mod/chanview.php @@ -5,7 +5,7 @@ require_once('include/zot.php'); function chanview_content(&$a) { - $observer = $a->get_observer(); + $observer = App::get_observer(); $xchan = null; $r = null; @@ -38,7 +38,7 @@ function chanview_content(&$a) { ); } if($r) { - $a->poi = $r[0]; + App::$poi = $r[0]; } @@ -47,7 +47,7 @@ function chanview_content(&$a) { // address, we can and should try to import it. If it's just a hash, we can't continue, but we // probably wouldn't have a hash if we don't already have an xchan for this channel. - if(! $a->poi) { + if(! App::$poi) { logger('mod_chanview: fallback'); // This is hackish - construct a zot address from the url if($_REQUEST['url']) { @@ -67,13 +67,13 @@ function chanview_content(&$a) { dbesc($_REQUEST['address']) ); if($r) - $a->poi = $r[0]; + App::$poi = $r[0]; } } } - if(! $a->poi) { + if(! App::$poi) { // We don't know who this is, and we can't figure it out from the URL // On the plus side, there's a good chance we know somebody else at that // hub so sending them there with a Zid will probably work anyway. @@ -82,8 +82,8 @@ function chanview_content(&$a) { $url = zid($url); } - if ($a->poi) { - $url = $a->poi['xchan_url']; + if (App::$poi) { + $url = App::$poi['xchan_url']; if($observer) $url = zid($url); } |