r73913 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73912‎ | r73913 | r73914 >
Date:15:53, 28 September 2010
Author:demon
Status:ok
Tags:
Comment:
Followup r73884, remove unused file (obsoleted in r68544)
Modified paths:
  • /trunk/phase3/maintenance/parserTestsParserTime.php (deleted) (history)

Diff [purge]

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 -

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68544* Removed require/require_once from maintenance scripts where possible, repla...tstarling02:55, 25 June 2010
r73884Move parser test related stuff to tests directory...demon12:24, 28 September 2010

Status & tagging log