X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshownotice.php;h=b60b6f5a722367c91ee4f65c1a6955bc18d6a9cd;hb=2abe10b8ea4b5d69fc7f6513bf465541454ca2cf;hp=51907575636ae88e82528691571796087ae7c2ce;hpb=28751ef5543d4786d101810b4f87deb0d00037c7;p=quix0rs-gnu-social.git diff --git a/actions/shownotice.php b/actions/shownotice.php index 5190757563..b60b6f5a72 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -23,9 +23,13 @@ require_once(INSTALLDIR.'/lib/stream.php'); class ShownoticeAction extends StreamAction { - function init($args) { + var $notice = NULL; + var $profile = NULL; + var $avatar = NULL; - parent::init($args); + function prepare($args) { + + parent::prepare($args); $id = $this->arg('notice'); $this->notice = Notice::staticGet($id); @@ -59,7 +63,7 @@ class ShownoticeAction extends StreamAction { $this->notice->id, strtotime($this->notice->created), strtotime($this->profile->modified), - ($this->avatar) ? strtotime($this->avatar->modified) : 0)); + ($this->avatar) ? strtotime($this->avatar->modified) : 0)) . '"'; } function handle($args) {