]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/attachment_thumbnail.php
Updating Janrain OpenID auth library
[quix0rs-gnu-social.git] / actions / attachment_thumbnail.php
index e325713226bb4703c1e143741222a9a06592b44a..a90f8fd5f8aac8c7a3746ecb24deb3b763e8f7be 100644 (file)
  *
  * @category  Personal
  * @package   StatusNet
- * @author    Evan Prodromou <evan@controlyourself.ca>
+ * @author    Evan Prodromou <evan@status.net>
  * @copyright 2008-2009 StatusNet, Inc.
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link      http://status.net/
  */
 
-if (!defined('LACONICA')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
@@ -38,14 +38,12 @@ require_once INSTALLDIR.'/actions/attachment.php';
  *
  * @category Personal
  * @package  StatusNet
- * @author   Evan Prodromou <evan@controlyourself.ca>
+ * @author   Evan Prodromou <evan@status.net>
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
  */
-
 class Attachment_thumbnailAction extends AttachmentAction
 {
-
     function handle($args)
     {
         $this->showPage();
@@ -73,12 +71,10 @@ class Attachment_thumbnailAction extends AttachmentAction
      */
     function showCore()
     {
-        $file_thumbnail = File_thumbnail::staticGet('file_id', $this->attachment->id);
+        $file_thumbnail = File_thumbnail::getKV('file_id', $this->attachment->id);
         if (empty($file_thumbnail->url)) {
             return;
         }
         $this->element('img', array('src' => $file_thumbnail->url, 'alt' => 'Thumbnail'));
     }
-
 }
-