* (bug 21503) There's now a "reason" field when creating account for other users
[lhc/web/wiklou.git] / maintenance / parserTestsParserTime.php
1 <?php
2 if ( ! defined( 'MEDIAWIKI' ) )
3 die( -1 );
4 /**
5 * A basic extension that's used by the parser tests to test date magic words
6 *
7 * Handy so that we don't have to upgrade the parsertests every second to
8 * compensate with the passage of time and certainly less expensive than a
9 * time-freezing device, get yours now!
10 *
11 * @file
12 * @ingroup Maintenance
13 *
14 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
15 * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason
16 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
17 */
18
19 $wgHooks['ParserGetVariableValueTs'][] = 'wfParserTimeSetup';
20
21 function wfParserTimeSetup( &$parser, &$ts ) {
22 $ts = 123; // $ perl -le 'print scalar localtime 123' ==> Thu Jan 1 00:02:03 1970
23
24 return true;
25 }
26