From: Ævar Arnfjörð Bjarmason Date: Sun, 8 Jan 2006 22:31:17 +0000 (+0000) Subject: * An extension for the parsertests that modifies the date reported by the parser X-Git-Tag: 1.6.0~671 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=7a8e4b1ec83803be99517c226dda05888e1bce19;p=lhc%2Fweb%2Fwiklou.git * An extension for the parsertests that modifies the date reported by the parser --- diff --git a/maintenance/parserTestsParserTime.php b/maintenance/parserTestsParserTime.php new file mode 100644 index 0000000000..727c4dc650 --- /dev/null +++ b/maintenance/parserTestsParserTime.php @@ -0,0 +1,25 @@ + + * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + */ + +$wgHooks['ParserGetVariableValueTs'][] = 'wfParserTimeSetup'; + +function wfParserTimeSetup( &$parser, &$ts ) { + $ts = 123; //$ perl -le 'print scalar localtime 123' ==> Thu Jan 1 00:02:03 1970 + + return true; +}