Index: trunk/phase3/maintenance/parserTestsParserTime.php |
— | — | @@ -1,40 +0,0 @@ |
2 | | -<?php |
3 | | -if ( ! defined( 'MEDIAWIKI' ) ) |
4 | | - die( -1 ); |
5 | | -/** |
6 | | - * A basic extension that's used by the parser tests to test date magic words |
7 | | - * |
8 | | - * Handy so that we don't have to upgrade the parsertests every second to |
9 | | - * compensate with the passage of time and certainly less expensive than a |
10 | | - * time-freezing device, get yours now! |
11 | | - * |
12 | | - * Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason |
13 | | - * |
14 | | - * This program is free software; you can redistribute it and/or modify |
15 | | - * it under the terms of the GNU General Public License as published by |
16 | | - * the Free Software Foundation; either version 2 of the License, or |
17 | | - * (at your option) any later version. |
18 | | - * |
19 | | - * This program is distributed in the hope that it will be useful, |
20 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | | - * GNU General Public License for more details. |
23 | | - * |
24 | | - * You should have received a copy of the GNU General Public License along |
25 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
26 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
27 | | - * http://www.gnu.org/copyleft/gpl.html |
28 | | - * |
29 | | - * @file |
30 | | - * @ingroup Maintenance |
31 | | - * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> |
32 | | - */ |
33 | | - |
34 | | -$wgHooks['ParserGetVariableValueTs'][] = 'wfParserTimeSetup'; |
35 | | - |
36 | | -function wfParserTimeSetup( &$parser, &$ts ) { |
37 | | - $ts = 123; // $ perl -le 'print scalar localtime 123' ==> Thu Jan 1 00:02:03 1970 |
38 | | - |
39 | | - return true; |
40 | | -} |
41 | | - |