]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/shownotice.php
Profile block base style
[quix0rs-gnu-social.git] / actions / shownotice.php
index 51907575636ae88e82528691571796087ae7c2ce..b60b6f5a722367c91ee4f65c1a6955bc18d6a9cd 100644 (file)
@@ -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) {