Fill in getDefaultQuery() for WLH/x links to carry title over in nav links
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 26 May 2008 23:56:40 +0000 (23:56 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 26 May 2008 23:56:40 +0000 (23:56 +0000)
includes/SpecialWhatlinkshere.php

index 035b73c..b7eec6e 100644 (file)
@@ -271,6 +271,12 @@ class WhatLinksHerePager extends AlphabeticPager {
                $this->level = intval($level); // recursion depth
        }
        
+       function getDefaultQuery() {
+               $query = parent::getDefaultQuery();
+               $query['target'] = $this->target->getPrefixedDBKey();
+               return $query;
+       }
+       
        function getQueryInfo() {
                $queryInfo = array();
                $options = array();