jeroendedauw
38c7f444e1
Use __DIR__ instead of dirname( __FILE__ )
...
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)
Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
2012-08-27 21:45:00 +02:00
Alexandre Emsenhuber
32515c4bda
Improve documentation of maintenance scripts.
...
Change-Id: If0af9922ede902c2c6f18b627d5810f3e888c944
2012-07-24 18:10:43 +02:00
Alexandre Emsenhuber
9f179bbe6f
* Use WikiPage instead of Article to call doEdit()
...
* Pass the User object to WikiPage::doEdit()
2012-01-15 12:30:14 +00:00
Alexandre Emsenhuber
9f5d06527c
Part of bug 26280: added license headers to PHP files in maintenance
2010-12-16 19:15:12 +00:00
Sam Reed
659778619c
Stylize maintenance folder..
2010-05-22 16:50:39 +00:00
Platonides
eb433b42a0
Follow up r62436 comments.
...
s/Title::newFromUrl/Title::newFromURL/
All these usages should be reviewed. Make it easy to grep using the canonical form.
Additionally fix the typo.
2010-02-13 23:58:30 +00:00
Chad Horohoe
567f244e36
Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time.
2009-08-03 21:56:41 +00:00
Brion Vibber
8a16dcde3a
Tweak to r47279 -- include final newline to keep the terminal clean :)
2009-02-17 22:06:20 +00:00
Siebrand Mazeland
7d334366a1
* (bug 17472) use print <<<EOF in maintenance/importTextFile.php. Patch contribute by Jidanni.
...
* removed trailing whitespace
2009-02-15 00:20:33 +00:00
Brion Vibber
04e94d54f7
* (bug 11733) Fixed parameter validation in importTextFile.php
2008-12-19 02:03:36 +00:00
Alexandre Emsenhuber
087a9f70c5
WARNING: HUGE COMMIT
...
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Aryeh Gregor
a15c419b3d
Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.)
2007-06-29 01:19:14 +00:00
Rob Church
c0c147fbb2
Remove un-needed comment transformation
2007-04-12 10:08:08 +00:00
Rob Church
11bd0d9c65
* Restore '--norc' option
...
* Make help more readable on consoles
* Show help if no filename provided instead of an error
2007-04-12 10:03:38 +00:00
Rob Church
7fefaf95f9
* (bug 8975) Use "Maintenance script" as the username for importTextFile.php, not "MediaWiki default" as it could cause pages to be overwritten
...
* Use "Maintenance script" as the username for importImages.php, too
* Clarified reserved username comment
2007-03-27 20:53:33 +00:00
Antoine Musso
c771fc9c96
Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
2007-01-20 15:09:52 +00:00
Brion Vibber
30038626fa
line endings
2007-01-05 03:37:19 +00:00
Rob Church
40a6749e49
Rewrite the importTextFile.php script; remove un-needed include file, use Article::doEdit() to do the work, and allow overwriting to occur. Fixes these bugs:
...
* (bug 7461) Allow overwriting pages using importTextFile.php
* (bug 7946) importTextFile.php doesn't perform pre-save transform
2006-12-02 22:16:21 +00:00
Brion Vibber
2fa70b6530
These files somehow got committed with DOS line endings, but are declared as native... Weeeeird
2006-05-16 22:19:23 +00:00
Rob Church
49e8c267c2
Do standard updates for page creation (missed one of the functions out)
2006-05-16 11:51:39 +00:00
Brion Vibber
4f1278d7db
fix line endings
2006-04-18 00:10:54 +00:00
Rob Church
ee07b5c53c
Update recent changes with an event upon page import; can be switched off with --norc
2006-04-14 17:36:52 +00:00
Rob Church
eff2fa3b36
Maintenance script to import the contents of a text file into a wiki page
2006-04-14 17:24:43 +00:00