* Returnto now works with special pages with subpage parameters
[lhc/web/wiklou.git] / includes / SpecialMostlinked.php
index ff95d2d..ab089cf 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * A special page to show pages ordered by the number of pages linking to them
+ * A special page to show pages ordered by the number of pages linking to them.
+ * Implements Special:Mostlinked
  *
  * @addtogroup SpecialPage
  *
  * @copyright © 2006 Rob Church
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
  */
-
-/**
- * @addtogroup SpecialPage
- */
 class MostlinkedPage extends QueryPage {
 
        function getName() { return 'Mostlinked'; }
@@ -25,7 +22,7 @@ class MostlinkedPage extends QueryPage {
         * Note: Getting page_namespace only works if $this->isCached() is false
         */
        function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                list( $pagelinks, $page ) = $dbr->tableNamesN( 'pagelinks', 'page' );
                return
                        "SELECT 'Mostlinked' AS type,