Index: trunk/extensions/ParserFunctions/ParserFunctions.php |
— | — | @@ -27,17 +27,17 @@ |
28 | 28 |
|
29 | 29 | function ifHook( &$parser, $test = '', $then = '', $else = '' ) {
|
30 | 30 | if ( trim( $test ) ) {
|
31 | | - return $then;
|
| 31 | + return trim( $then );
|
32 | 32 | } else {
|
33 | | - return $else;
|
| 33 | + return trim( $else );
|
34 | 34 | }
|
35 | 35 | }
|
36 | 36 |
|
37 | 37 | function ifeq( &$parser, $left = '', $right = '', $then = '', $else = '' ) {
|
38 | 38 | if ( trim( $left ) == trim( $right ) ) {
|
39 | | - return $then;
|
| 39 | + return trim( $then );
|
40 | 40 | } else {
|
41 | | - return $else;
|
| 41 | + return trim( $else );
|
42 | 42 | }
|
43 | 43 | }
|
44 | 44 |
|