Fixed exception in diff size formatter.
authorAaron <aschulz@wikimedia.org>
Tue, 3 Jul 2012 18:20:24 +0000 (11:20 -0700)
committerAaron <aschulz@wikimedia.org>
Tue, 3 Jul 2012 18:20:24 +0000 (11:20 -0700)
Change-Id: Iaa4887453ba6b136e507e51af6c80849b7c6873c

includes/ChangesList.php

index da56050..69d4282 100644 (file)
@@ -210,6 +210,8 @@ class ChangesList extends ContextSource {
                        $context = RequestContext::getMain();
                }
 
+               $new = (int)$new;
+               $old = (int)$old;
                $szdiff = $new - $old;
 
                $lang = $context->getLanguage();