From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 18:12:39 +0000 Subject: MediaWiki 1.7.1 wiederhergestellt --- maintenance/parserTestsParserTime.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 maintenance/parserTestsParserTime.php (limited to 'maintenance/parserTestsParserTime.php') diff --git a/maintenance/parserTestsParserTime.php b/maintenance/parserTestsParserTime.php new file mode 100644 index 00000000..705f9ce7 --- /dev/null +++ b/maintenance/parserTestsParserTime.php @@ -0,0 +1,26 @@ + + * @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; +} +?> -- cgit v1.2.3-54-g00ecf