$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' );
}
function isSyndicated() {
return false;
}
-
+
/**
* Cache page existence for performance
*/
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 ) {