dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5df0b9b
)
Forgot this, needed with r36153
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 10 Jun 2008 15:38:13 +0000
(15:38 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 10 Jun 2008 15:38:13 +0000
(15:38 +0000)
includes/Status.php
patch
|
blob
|
history
diff --git
a/includes/Status.php
b/includes/Status.php
index
ed1455c
..
185ea6e
100644
(file)
--- a/
includes/Status.php
+++ b/
includes/Status.php
@@
-179,4
+179,16
@@
class Status {
}
return $result;
}
}
return $result;
}
+
+ /**
+ * Returns true if the specified message is present as a warning or error
+ */
+ function hasMessage( $msg ) {
+ foreach ( $this->errors as $error ) {
+ if ( $error['message'] === $msg ) {
+ return true;
+ }
+ }
+ return false;
+ }
}
}