$this->elementEnd('a');
$this->element('p', array(), $this->photo->photo_description);
//This is a hack to hide the top-level comment
- $this->element('style', array(), "#notice-{$this->photo->notice_id} div { display: none } #notice-{$this->photoid} ol li div { display: inline }");
+ $this->element('style', array(), "#notice-{$this->photo->notice_id} div { display: none } #notice-{$this->photo->notice_id} ol li div { display: inline }");
$this->conversation->show();
}
}
*
* @package GNU Social
* @author Ian Denhardt <ian@zenhack.net>
+ * @author Max Shinn <trombonechamp@gmail.com>
* @copyright 2010 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
*/
$this->out->menuItem(common_local_url('photos', array('nickname' => $this->nickname)),
_('Photos'));
-
- $this->out->menuItem(common_local_url('photoupload', array()),
- _('Upload Photos'));
+
+ $user = common_current_user();
+ if (!empty($user)) {
+ $this->out->menuItem(common_local_url('photoupload', array()),
+ _('Upload Photos'));
+ }
$this->out->elementEnd('ul');
}