mkroetzsch / AutoCreatePage

MediaWiki extension to create pages with a parser function
http://www.mediawiki.org/wiki/Extension:AutoCreatePage
GNU General Public License v2.0
6 stars 12 forks source link

Unstrip nowiki without accessing mStripState #4

Open mkroetzsch opened 9 years ago

mkroetzsch commented 9 years ago

The code unstrips nowiki blocks from the text that should be placed on the new wiki page. To do this, the parser's internal mStripState member is accessed to get the StripState. This has a public method unstripNoWiki() that does the job. However, the access to mStripState is not declared public and may thus break in the future. A better method should be found. This may require changes in MediaWiki.