r41049 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41048‎ | r41049 | r41050 >
Date:03:49, 20 September 2008
Author:tstarling
Status:old
Tags:
Comment:
Remove rage, looks unprofessional.
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2003,10 +2003,8 @@
20042004 // In the spirit of DWIM
20052005 return true;
20062006
2007 - // PHP is fucking stupid.
2008 - // > $f = array( 'foo', 'bar', 'baz', 0, 'anne' );
2009 - // > print in_array( 'blah', $f );
2010 - // 1
 2007+ # Use strict parameter to avoid matching numeric 0 accidentally inserted
 2008+ # by misconfiguration: 0 == 'foo'
20112009 return in_array( $action, $this->getRights(), true );
20122010 }
20132011