r36155 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36154‎ | r36155 | r36156 >
Date:15:38, 10 June 2008
Author:tstarling
Status:old
Tags:
Comment:
Forgot this, needed with r36153
Modified paths:
  • /trunk/phase3/includes/Status.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Status.php
@@ -179,4 +179,16 @@
180180 }
181181 return $result;
182182 }
 183+
 184+ /**
 185+ * Returns true if the specified message is present as a warning or error
 186+ */
 187+ function hasMessage( $msg ) {
 188+ foreach ( $this->errors as $error ) {
 189+ if ( $error['message'] === $msg ) {
 190+ return true;
 191+ }
 192+ }
 193+ return false;
 194+ }
183195 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r36153Like the comment says... dieDebug() instead of wfHttpErrortstarling15:20, 10 June 2008

Status & tagging log