From: Sam Reed Date: Mon, 20 Jun 2011 22:32:08 +0000 (+0000) Subject: * (bug 29278) server error 500 when attempting to add text to a page via redirect... X-Git-Tag: 1.31.0-rc.0~29387 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=7206e3cafe334f80152bd6c61ed57661dde14c78;p=lhc%2Fweb%2Fwiklou.git * (bug 29278) server error 500 when attempting to add text to a page via redirect (redirect points to the page and page is edited) Needs 1.17 and 1.18 backporting, so release notes will go in 1.17 --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 2aa77c9fb0..dbfcc3dfd7 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -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 ) {