Index: trunk/phase3/includes/Namespace.php |
— | — | @@ -56,10 +56,7 @@ |
57 | 57 | * @return bool |
58 | 58 | */ |
59 | 59 | function isMovable( $index ) { |
60 | | - if ( $index < NS_MAIN || $index == NS_IMAGE || $index == NS_CATEGORY ) { |
61 | | - return false; |
62 | | - } |
63 | | - return true; |
| 60 | + return !( $index < NS_MAIN || $index == NS_IMAGE || $index == NS_CATEGORY ); |
64 | 61 | } |
65 | 62 | |
66 | 63 | /** |
— | — | @@ -75,7 +72,7 @@ |
76 | 73 | * @return bool |
77 | 74 | */ |
78 | 75 | function isTalk( $index ) { |
79 | | - return ($index > 0) // Special namespaces are negative |
| 76 | + return ($index > NS_MAIN) // Special namespaces are negative |
80 | 77 | && ($index % 2); // Talk namespaces are odd-numbered |
81 | 78 | } |
82 | 79 | |