(bug 14021) Removing titles= support from list=backlinks, has been obsolete for ages...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 9 May 2008 14:44:32 +0000 (14:44 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 9 May 2008 14:44:32 +0000 (14:44 +0000)
RELEASE-NOTES
includes/api/ApiQueryBacklinks.php

index cd67eb0..e7b6048 100644 (file)
@@ -326,6 +326,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 14013) Added rcshow=patrolled to list=recentchanges
 * (bug 14028) Added language attribute to interwiki map in meta=siteinfo
 * (bug 14022) Added usprop=registration and auprop=blockinfo
+* (bug 14021) Removed titles= support from list=backlinks (has been obsolete for ages)
 
 === Languages updated in 1.13 ===
 
index 3b504ec..6e0a588 100644 (file)
@@ -260,20 +260,14 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
        }
 
        protected function processContinue() {
-               $pageSet = $this->getPageSet();
-               $count = $pageSet->getTitleCount();
-
                if (!is_null($this->params['continue']))
                        $this->parseContinueParam();
                else {
                        $title = $this->params['title'];
                        if (!is_null($title)) {
                                $this->rootTitle = Title :: newFromText($title);
-                       } else {  // This case is obsolete. Will support this for a while
-                               if ($count !== 1)
-                                       $this->dieUsage("The {$this->getModuleName()} query requires one title to start", 'bad_title_count');
-                               $this->rootTitle = current($pageSet->getTitles()); // only one title there
-                               $this->setWarning('Using titles parameter is obsolete for this list. Use ' . $this->encodeParamName('title') . ' instead.');
+                       } else {
+                               $this->dieUsageMsg(array('missingparam', "title"));
                        }
                }