From: Reedy Date: Sat, 14 Jul 2012 00:11:54 +0000 (+0100) Subject: Fix for: Fatal error: Call to undefined method ApiDelete::getErrorsArray() X-Git-Tag: 1.31.0-rc.0~23040 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=1aac87e9f1b5b4637d18834d463f1c239343cf3c;p=lhc%2Fweb%2Fwiklou.git Fix for: Fatal error: Call to undefined method ApiDelete::getErrorsArray() Fatal error: Call to undefined method ApiDelete::getErrorsArray() in /usr/local/apache/common-local/php-1.20wmf7/includes/api/ApiDelete.php on line 65 Caused by https://gerrit.wikimedia.org/r/#/c/7572/ Change-Id: Ib86fab94667ed50d172eb7ea3e82c99ecb3e52b0 --- diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 91406afab5..2f7bf6f17c 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -62,7 +62,7 @@ class ApiDelete extends ApiBase { } if ( !$status->isGood() ) { - $errors = $this->getErrorsArray(); + $errors = $status->getErrorsArray(); $this->dieUsageMsg( $errors[0] ); // We don't care about multiple errors, just report one of them }