* Refactoring ApiQueryImageInfo to use new File::loadHistory() interface. No change...
[lhc/web/wiklou.git] / includes / SpecialLonelypages.php
index 1de11bb..e652f9d 100644 (file)
@@ -5,7 +5,8 @@
  */
 
 /**
- *
+ * A special page looking for articles with no article linking to them,
+ * thus being lonely.
  * @addtogroup SpecialPage
  */
 class LonelyPagesPage extends PageQueryPage {
@@ -14,7 +15,7 @@ class LonelyPagesPage extends PageQueryPage {
                return "Lonelypages";
        }
        function getPageHeader() {
-               return '<p>' . wfMsg('lonelypagestext') . '</p>';
+               return wfMsgExt( 'lonelypagestext', array( 'parse' ) );
        }
 
        function sortDescending() {
@@ -27,7 +28,7 @@ class LonelyPagesPage extends PageQueryPage {
        function isSyndicated() { return false; }
 
        function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                list( $page, $pagelinks ) = $dbr->tableNamesN( 'page', 'pagelinks' );
 
                return
@@ -56,4 +57,4 @@ function wfSpecialLonelypages() {
        return $lpp->doQuery( $offset, $limit );
 }
 
-?>
+