Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | $this->mUseCache = $useMemCached; |
20 | 20 | $this->mDisable = !$useDB; |
21 | 21 | $this->mExpiry = $expiry; |
| 22 | + $this->mDisableTransform = false; |
22 | 23 | $this->mMemcKey = "$memcPrefix:messages"; |
23 | 24 | $this->mKeys = false; # initialised on demand |
24 | 25 | $this->mInitialised = true; |
— | — | @@ -197,19 +198,21 @@ |
198 | 199 | |
199 | 200 | # Replace brace tags |
200 | 201 | $message = $this->transform( $message ); |
201 | | - |
202 | 202 | return $message; |
203 | 203 | } |
204 | 204 | |
205 | 205 | function transform( $message ) { |
206 | | - if ( strstr( $message, "{{" ) !== false ) { |
207 | | - $message = $this->mParser->transformMsg( $message, $this->mParserOptions ); |
| 206 | + if( !$this->mDisableTransform ) { |
| 207 | + if ( strstr( $message, "{{" ) !== false ) { |
| 208 | + $message = $this->mParser->transformMsg( $message, $this->mParserOptions ); |
| 209 | + } |
208 | 210 | } |
209 | 211 | return $message; |
210 | 212 | } |
211 | 213 | |
212 | 214 | function disable() { $this->mDisable = true; } |
213 | 215 | function enable() { $this->mDisable = false; } |
| 216 | + function disableTransform() { $this->mDisableTransform = true; } |
214 | 217 | |
215 | 218 | } |
216 | 219 | ?> |