Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php |
— | — | @@ -73,10 +73,17 @@ |
74 | 74 | $wgParser->_unstub(); |
75 | 75 | } |
76 | 76 | |
77 | | - $wgParser->getOptions()->enableLimitReport( false ); |
| 77 | + $parseroptions = $wgParser->getOptions(); |
78 | 78 | |
| 79 | + if ( $parseroptions == null ) { |
| 80 | + $parseroptions = new ParserOptions(); |
| 81 | + $wgParser->Options($parseroptions); |
| 82 | + } |
79 | 83 | |
80 | | - return $wgParser->parse( $result, $title, $wgParser->getOptions() )->getText(); |
| 84 | + $parseroptions->enableLimitReport( false ); |
| 85 | + |
| 86 | + |
| 87 | + return $wgParser->parse( $result, $title, $parseroptions )->getText(); |
81 | 88 | } |
82 | 89 | |
83 | 90 | /** |