* (bug 29278) server error 500 when attempting to add text to a page via redirect...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 20 Jun 2011 22:32:08 +0000 (22:32 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 20 Jun 2011 22:32:08 +0000 (22:32 +0000)
Needs 1.17 and 1.18 backporting, so release notes will go in 1.17

includes/api/ApiEditPage.php

index 2aa77c9..dbfcc3d 100644 (file)
@@ -67,8 +67,6 @@ class ApiEditPage extends ApiBase {
                                $titles = Title::newFromRedirectArray( Revision::newFromTitle( $oldTitle )->getText( Revision::FOR_THIS_USER ) );
                                // array_shift( $titles );
 
-                               $apiResult->addValue( null, 'foo', $titles );
-
                                $redirValues = array();
                                foreach ( $titles as $id => $newTitle ) {