Index: trunk/phase3/includes/StringUtils.php |
— | — | @@ -250,13 +250,18 @@ |
251 | 251 | |
252 | 252 | function replace( $subject ) { |
253 | 253 | if ( function_exists( 'fss_prep_replace' ) ) { |
| 254 | + wfProfileIn( __METHOD__.'-fss' ); |
254 | 255 | if ( $this->fss === false ) { |
255 | 256 | $this->fss = fss_prep_replace( $this->data ); |
256 | 257 | } |
257 | | - return fss_exec_replace( $this->fss, $subject ); |
| 258 | + $result = fss_exec_replace( $this->fss, $subject ); |
| 259 | + wfProfileOut( __METHOD__.'-fss' ); |
258 | 260 | } else { |
259 | | - return strtr( $subject, $this->data ); |
| 261 | + wfProfileIn( __METHOD__.'-strtr' ); |
| 262 | + $result = strtr( $subject, $this->data ); |
| 263 | + wfProfileOut( __METHOD__.'-strtr' ); |
260 | 264 | } |
| 265 | + return $result; |
261 | 266 | } |
262 | 267 | } |
263 | 268 | |