Index: trunk/extensions/Translate/MessageChecks.php |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | |
59 | 59 | foreach ( $this->checksForType[$type] as $check ) { |
60 | 60 | $warning = ''; |
61 | | - if ( call_user_func( array($this, $check), $message, $code, &$warning ) ) { |
| 61 | + if ( $this->$check( $message, $code, $warning ) ) { |
62 | 62 | $warnings[] = $warning; |
63 | 63 | } |
64 | 64 | } |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | if ( $message->translation === null) return false; |
71 | 71 | |
72 | 72 | foreach ( $this->checksForType[$type] as $check ) { |
73 | | - if ( call_user_func( array($this, $check), $message, $code ) ) return true; |
| 73 | + if ( $this->$check( $message, $code ) ) return true; |
74 | 74 | } |
75 | 75 | |
76 | 76 | return false; |