Moved image metadata to the database. Changed Image object to have lightweight constr...
[lhc/web/wiklou.git] / includes / SpecialUnusedimages.php
index 574899b..3b7459f 100644 (file)
@@ -9,7 +9,8 @@
 require_once("QueryPage.php");
 
 /**
- *
+ * @package MediaWiki
+ * @subpackage SpecialPage
  */
 class UnusedimagesPage extends QueryPage {
 
@@ -20,6 +21,7 @@ class UnusedimagesPage extends QueryPage {
        function sortDescending() {
                return false;
        }
+       function isSyndicated() { return false; }
 
        function getSQL() {
                $dbr =& wfGetDB( DB_SLAVE );
@@ -33,7 +35,7 @@ class UnusedimagesPage extends QueryPage {
                global $wgLang, $wgContLang;
                $title = Title::makeTitle( NS_IMAGE, $result->title );
                
-               $imageUrl = htmlspecialchars( Image::wfImageUrl( $result->title ) );
+               $imageUrl = htmlspecialchars( Image::imageUrl( $result->title ) );
                $return =
                # The 'desc' linking to the image page
                '('.$skin->makeKnownLinkObj( $title, wfMsg('imgdesc') ).') '
@@ -42,12 +44,10 @@ class UnusedimagesPage extends QueryPage {
                # Last modified date
                . ' . . '.$wgLang->timeanddate($result->value)
                # Link to username
-               . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text);
-               
+               . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text)
                # If there is a description, show it
-               if($result->img_description != '') {
-                       $return .= ' <i>(' . $skin->formatComment( $result->img_description ) . ')</i>';
-               }
+               . $skin->commentBlock( $result->img_description );
+               
                return $return;
        }