MaxSem has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/371598 )
Change subject: Remove superfuluos check
......................................................................
Remove superfuluos check
PHP already checks it for us.
Change-Id: I31e2c46f719af0861f8fe67d2689c0ee34039045
---
M includes/HitCounters.body.php
1 file changed, 0 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HitCounters
refs/changes/98/371598/1
diff --git a/includes/HitCounters.body.php b/includes/HitCounters.body.php
index f607f87..2f5bd62 100644
--- a/includes/HitCounters.body.php
+++ b/includes/HitCounters.body.php
@@ -25,9 +25,6 @@
* @return int The view count for the page
*/
public static function getCount( Title $title ) {
- if ( $title === null ) {
- throw new MWException( "Asked for count without a
title!" );
- }
if ( $title->isSpecialPage() ) {
return null;
}
--
To view, visit https://gerrit.wikimedia.org/r/371598
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I31e2c46f719af0861f8fe67d2689c0ee34039045
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/HitCounters
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits