wiki.techinc.nl/includes/parser
Brian Wolff 2d542d3fd5 {{PAGESIZE:{{FULLPAGENAME}}}}, {{{{FULLPAGENAME}}}} not outdated
Previously, when parsing {{PAGESIZE:{{FULLPAGENAME}}}} or
{{ {{FULLPAGENAME}} }} (a self-transclusion), we used the
version currently in the db, which is outdated because
the moment we save the page there will be a new version.

This often causes confusion when testing templates that
often have examples of template use in the doc section
which would be one version out of date.

This change causes those variables to give results for
the most recent version of the page. For self-templates
that's done by reparsing the page after save. For
self page sizes this is done by taking the size
of the input to Parser::parse.

Note that {{subst:PAGESIZE:{{subst:FULLPAGENAME}}}}
will still yield previous revision like before.

bug: 39590
Change-Id: Idfac13de37d05317f65e4131534543e66cf74873
2013-04-27 20:45:32 -03:00
..
CacheTime.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
CoreLinkFunctions.php fix some spacing 2013-02-04 20:09:18 +00:00
CoreParserFunctions.php {{PAGESIZE:{{FULLPAGENAME}}}}, {{{{FULLPAGENAME}}}} not outdated 2013-04-27 20:45:32 -03:00
CoreTagHooks.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
DateFormatter.php Removed space after isset 2013-04-26 14:18:06 +02:00
LinkHolderArray.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
Parser.php {{PAGESIZE:{{FULLPAGENAME}}}}, {{{{FULLPAGENAME}}}} not outdated 2013-04-27 20:45:32 -03:00
Parser_DiffTest.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
Parser_LinkHooks.php TRUE, FALSE and NULL must be lowercase 2013-02-09 21:10:44 +01:00
ParserCache.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
ParserOptions.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
ParserOutput.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
Preprocessor.php fix some spacing 2013-03-07 17:53:21 +01:00
Preprocessor_DOM.php Simplify the nested ifs of Preprocessor_DOM::preprocessToObj() 2013-04-23 13:05:09 +00:00
Preprocessor_Hash.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
StripState.php style: normalize end of files 2013-02-03 15:04:39 +01:00
Tidy.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00