diff options
author | Mark Holmquist <mtraceur@member.fsf.org> | 2015-02-13 11:29:58 -0600 |
---|---|---|
committer | Gergő Tisza <tgr.huwiki@gmail.com> | 2015-02-14 00:05:41 +0000 |
commit | 7a8440210874d265a73468607647eb9910ba80a5 (patch) | |
tree | 914fbaefdb066350f60be09720c4e49f034e6ae8 /includes/Status.php | |
parent | e2379561fab58f9eedd63d73ccc93fe1c0b772e6 (diff) | |
download | mediawikicore-7a8440210874d265a73468607647eb9910ba80a5.tar.gz mediawikicore-7a8440210874d265a73468607647eb9910ba80a5.zip |
Fix magic getter for $status->ok
__get called a non-existant function which caused errors
in file deletion.
Also adds tests for $status->ok and $status->errors
Change-Id: I8f5a21eb8d795e5e3f5a58f2384ad0dcbad749a2
Diffstat (limited to 'includes/Status.php')
-rw-r--r-- | includes/Status.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Status.php b/includes/Status.php index 61a00470a564..cd10258d5802 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -437,7 +437,7 @@ class Status { */ function __get( $name ) { if ( $name === 'ok' ) { - return $this->sv->getOK(); + return $this->sv->isOK(); } elseif ( $name === 'errors' ) { return $this->sv->getErrors(); } |