Index: branches/REL1_18/phase3/includes/parser/StripState.php |
— | — | @@ -90,10 +90,13 @@ |
91 | 91 | |
92 | 92 | wfProfileIn( __METHOD__ ); |
93 | 93 | $this->tempType = $type; |
94 | | - $out = preg_replace_callback( $this->regex, array( $this, 'unstripCallback' ), $text ); |
| 94 | + do { |
| 95 | + $oldText = $text; |
| 96 | + $text = preg_replace_callback( $this->regex, array( $this, 'unstripCallback' ), $text ); |
| 97 | + } while ( $text !== $oldText ); |
95 | 98 | $this->tempType = null; |
96 | 99 | wfProfileOut( __METHOD__ ); |
97 | | - return $out; |
| 100 | + return $text; |
98 | 101 | } |
99 | 102 | |
100 | 103 | /** |
Property changes on: branches/REL1_18/phase3/includes |
___________________________________________________________________ |
Modified: svn:mergeinfo |
101 | 104 | Merged /trunk/phase3/includes:r99062 |
Property changes on: branches/REL1_18/phase3 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
102 | 105 | Merged /trunk/phase3:r99062 |