Index: branches/wmf/1.17wmf1/includes/Message.php |
— | — | @@ -285,6 +285,16 @@ |
286 | 286 | public function exists() { |
287 | 287 | return $this->fetchMessage() !== false; |
288 | 288 | } |
| 289 | + |
| 290 | + /** |
| 291 | + * Check whether a message does not exist, or is an empty string |
| 292 | + * @return Bool: true if is is and false if not |
| 293 | + * @todo FIXME: Merge with isDisabled()? |
| 294 | + */ |
| 295 | + public function isBlank() { |
| 296 | + $message = $this->fetchMessage(); |
| 297 | + return $message === false || $message === ''; |
| 298 | + } |
289 | 299 | |
290 | 300 | /** |
291 | 301 | * Check whether a message does not exist, is an empty string, or is "-" |