aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/initStats.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix missing parameter to cacheUpdateSam Reed2011-03-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85028
* Fix concern raised by Brion in r74108 (but has really existed since the ↵Chad Horohoe2011-01-131-1/+1
| | | | | | | | | | | maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself. Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild(). Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80205
* Standardised file description headers:Alexandre Emsenhuber2010-09-011-2/+1
| | | | | | | | * added @file where needed * replaced @copyright and @license with GPL header and copyright notice Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/72159
* Stylize maintenance folder..Sam Reed2010-05-221-4/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
* Revert r54244 which was stupid and fix this properly. Require ↵Chad Horohoe2009-08-031-1/+1
| | | | | | | commandLine.inc/Maintenance.php using the full path every time. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54312
* Merge maintenance-work branch (now with less errors!):Chad Horohoe2009-08-021-17/+70
| | | | | | | | | | | * Docs have been updated to indicate the standard on how to write maintenance scripts (MW.org docs will follow) Have ported vast majority of maintenance scripts to new format. Remaining ones (mostly FiveUpgrade-related) are a bit more tricky. commandLine.inc is untouched for now. Many have gotten code-style updates as well. Deleted .inc files were only used by their .php counterparts, and have been merged into single files. * (bug 11867) Lock error on redirect table when running orphans.php * (bug 16322) Allow maintenance scripts to accept DB user/pass over input or params * (bug 18566) Maintenance script to un/protect pages * initStats overhaul, now uses class SiteStatsInit. Also fixes bug 18930 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54225
* Revert r52336 "Merge maintenance-work branch:"Brion Vibber2009-06-241-14/+15
| | | | | | | | Seems to have broken a bunch of stuff. Don't commit giant non-critical changes that break Setup.php and all maint scripts. Thanks! Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/52340
* Merge maintenance-work branch:Chad Horohoe2009-06-241-15/+14
| | | | | | | | | | | | * (bug 16322) Allow maint scripts to accept DB user/pass over input or params if no AdminSettings.php * (bug 18768) Remove AdminSettings.php from MediaWiki core * (bug 19157) createAndPromote error on bad password * (bug 14201) Create AdminSettings.php during wiki installation, in the same way as LocalSettings.php * Introduce new Maintenance class framework and port a good number of scripts over; the ones that are left are a little more complicated. Read the docs. * Not deleting "unused" files yet, don't want to break everything at once :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/52336
* (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriateChad Horohoe2009-04-061-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/49247
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-1/+2
| | | | | | | | | | | | | | | | | | 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+0
| | | | | | | 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.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* * Initialise site_stats table at upgrade time if data was missingBrion Vibber2007-01-131-50/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19186
* Count deleted edits when regenerating the edit countRob Church2007-01-071-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/18897
* Introduce $wgContentNamespaces which allows for articles to exist in ↵Rob Church2006-06-121-1/+2
| | | | | | | namespaces other than the main namespace, and still be counted as valid content in the site statistics. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14738
* Include page view counters in stats initialisationRob Church2006-05-041-5/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14071
* Parse errorRob Church2006-05-011-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13999
* Add helpRob Church2006-05-011-0/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13997
* * Updated initStats maintenance scriptRob Church2006-05-011-21/+44
| | | | | | | * Remove recountImages since it's now redundant Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13996
* Add --update option to avoid overwriting existing columns other than ↵Brion Vibber2006-04-081-6/+14
| | | | | | | ss_total_edits and ss_good_articles Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13554
* Fix problem reported on mailing list where re-initialising stats didn't work ↵Rob Church2006-01-161-0/+1
| | | | | | | (can't insert duplicate rows with the same id field) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12713
* Quick hacky script to initialize site_stats row where missing.Brion Vibber2005-08-291-0/+25
Note: the good pages count is probably wrong, since this is no longer easy to count content on 1.5 schema. It may overcount some pages which don't actually contain a '[' character. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10823