Status: Make various improvements to the Status class
authorDerick Alangi <alangiderick@gmail.com>
Sun, 3 Mar 2019 20:10:12 +0000 (21:10 +0100)
committerKrinkle <krinklemail@gmail.com>
Mon, 4 Mar 2019 00:44:34 +0000 (00:44 +0000)
commitaea6cbdc4217310735169c08646f42928a048823
treea5208a6095b5637c13b1df9c3f8eaec910787502
parent7d7b5f98a712be1a4d93738989cb74fd7f3a4594
Status: Make various improvements to the Status class

These improvements touches areas such as;
- strict comparison as count() returns in int.
- use of single quotes for string literals.
- use of RequestContext to get the user's Language object.
- fix minor typo.

The todo for using RequestContext was added in 7c543bb6c25.
It used `$wgLang` at the time for consistency with Message.php,
which was changed in 2016 with 0beb5ca992c. Hence, it's now
fine here as well.

Change-Id: I943dfd761a8fca7e8b6658e3c9510ddc6694f042
includes/Status.php