moving SpecialUploadMogile.php from phase3/includes/specials to extensions/MogileClie...
[lhc/web/wiklou.git] / includes / QueryPage.php
index 671fd5c..9d89ac3 100644 (file)
@@ -304,10 +304,12 @@ class QueryPage {
                                $tRow = $dbr->fetchObject( $tRes );
 
                                if( $tRow ) {
-                                       $updated = $wgLang->timeAndDate( $tRow->qci_timestamp, true, true );
+                                       $updated = $wgLang->timeanddate( $tRow->qci_timestamp, true, true );
+                                       $updateddate = $wgLang->date( $tRow->qci_timestamp, true, true );
+                                       $updatedtime = $wgLang->time( $tRow->qci_timestamp, true, true );
                                        $wgOut->addMeta( 'Data-Cache-Time', $tRow->qci_timestamp );
                                        $wgOut->addInlineScript( "var dataCacheTime = '{$tRow->qci_timestamp}';" );
-                                       $wgOut->addWikiMsg( 'perfcachedts', $updated );
+                                       $wgOut->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime );
                                } else {
                                        $wgOut->addWikiMsg( 'perfcached' );
                                }
@@ -549,7 +551,7 @@ abstract class WantedQueryPage extends QueryPage {
        function isSyndicated() {
                return false;
        }
-       
+
        /**
         * Cache page existence for performance
         */
@@ -578,23 +580,35 @@ abstract class WantedQueryPage extends QueryPage {
                        if( $this->isCached() ) {
                                $pageLink = $title->exists()
                                        ? '<s>' . $skin->link( $title ) . '</s>'
-                                       : $skin->makeBrokenLinkObj( $title );
+                                       : $skin->link(
+                                               $title,
+                                               null,
+                                               array(),
+                                               array(),
+                                               array( 'broken' )
+                                       );
                        } else {
-                               $pageLink = $skin->makeBrokenLinkObj( $title );
+                               $pageLink = $skin->link(
+                                       $title,
+                                       null,
+                                       array(),
+                                       array(),
+                                       array( 'broken' )
+                               );
                        }
                        return wfSpecialList( $pageLink, $this->makeWlhLink( $title, $skin, $result ) );
                } else {
                        $tsafe = htmlspecialchars( $result->title );
-                       return wfMsg( 'wantedpages-badtitle', $tsafe );
+                       return wfMsgHtml( 'wantedpages-badtitle', $tsafe );
                }
        }
        
        /**
         * Make a "what links here" link for a given title
         *
-        * @param Title $title Title to make the link for
-        * @param Skin $skin Skin to use
-        * @param object $result Result row
+        * @param $title Title to make the link for
+        * @param $skin Skin object to use
+        * @param $result Object: result row
         * @return string
         */
        private function makeWlhLink( $title, $skin, $result ) {