aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/refreshLinks.php
Commit message (Collapse)AuthorAgeFilesLines
...
* | cleanup and fixes for secondary data updatesdaniel2012-06-071-3/+2
| |
* | Use Title, not IContextSource; remove createArticle, etc.daniel2012-05-231-1/+1
| | | | | | | | | | | | | | | | This merges the latest core patch into the Wikidata branch, implementing suggestions collected on gerrit. Most importantly: * Methods in the Content class no longer rely on a IContextSource * createArticle and createEditPage were removed from Contenthandler
* | introducing Content::getSecondaryDataUpdates()daniel2012-05-161-4/+1
| |
* | fix: SecondaryDataUpdate -> DataUpdatedaniel2012-05-151-1/+1
| |
* | merged from masterdaniel2012-04-291-16/+13
|\|
| * Use WikiPage::newFromID() instead of Title::newFromID() in refreshLinks.php.Alexandre Emsenhuber2012-04-261-11/+11
| | | | | | | | | | | | Avoids having to load twice the same row from the database. Change-Id: I3099dbd290e44f21677990e69200694c70aac63b
* | merged from masterdaniel2012-04-251-2/+2
|\|
| * Use $wgContLang and an anonymous user in refreshLinks.php to parse pages.Alexandre Emsenhuber2012-04-231-2/+2
| | | | | | | | | | | | Normally it should already be correct, but just in case it gets broken for some reason. Change-Id: Ia38df1ba1f4a6224296bfd837a515ce0ccdf55cb
* | use ParserOutput::getSecondaryDataUpdates() as the primary method of getting ↵daniel2012-04-171-1/+1
| | | | | | | | pending updates
* | Merge branch 'master' into WikidataJens Ohlig2012-04-111-3/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitreview includes/Article.php includes/AutoLoader.php includes/EditPage.php includes/LinksUpdate.php includes/WikiPage.php includes/installer/Ibm_db2Updater.php includes/installer/MysqlUpdater.php includes/installer/OracleUpdater.php includes/installer/SqliteUpdater.php maintenance/refreshLinks.php
| * More __METHOD__ in our madnessSam Reed2012-02-241-2/+2
| | | | | | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112339
| * Fixing up undefined types in maintenance documentationSam Reed2012-02-091-2/+2
| | | | | | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111092
* | use ParserOutput::getLinksUpdateAndOtherUpdates() in order to get all ↵daniel2012-04-051-3/+5
|/ | | | | | necessary update objects Change-Id: I69c50e0bd59371a6a34b04d2762a882c6e7e60cb
* * Use WikiPage instead of ArticleAlexandre Emsenhuber2012-01-071-5/+3
| | | | | | | | * Use getRedirectTarget() instead of followRedirect(); the latter may return a string, which is not wanted here * No need to call updateRedirectOn(); getRedirectTarget() already populates the redirect table if needed Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108321
* * (bug 30451) Add page_props to RefreshLinks::deleteLinksFromNonexistentSam Reed2011-08-181-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94963
* Adding __METHOD__ to parameters passed to wfMkdirParents()Sam Reed2011-07-251-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/93132
* Fix whitespace, documentationSam Reed2011-07-091-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/91779
* * (bug 28630) Add iwlinks, langlinks, redirect to ↵Sam Reed2011-07-091-0/+2
| | | | | | | RefreshLinks::deleteLinksFromNonexistent Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/91778
* Followup r86183 and per bug 28628Sam Reed2011-07-091-0/+1
| | | | | | | Might awell make refreshLinks remove dead iwlinks from the table Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/91777
* Merge r86398 into the old wfWaitForSlaves. Update core calls.Platonides2011-04-201-6/+6
| | | | | | | | | | maintenance/waitForSlave.php still calls the old prototype. Most instances were replaced with sed -i 's/wfWaitForSlaves( [0-9]* );/wfWaitForSlaves();/' ./maintenance/initEditCount.php ./maintenance/updateRestrictions.php ./maintenance/updateSpecialPages.php ./maintenance/importDump.php ./maintenance/moveBatch.php ./maintenance/storage/resolveStubs.php ./maintenance/storage/trackBlobs.php ./maintenance/storage/fixBug20757.php ./maintenance/storage/moveToExternal.php ./maintenance/storage/compressOld.inc ./maintenance/populateSha1.php ./maintenance/deleteDefaultMessages.php ./maintenance/migrateUserGroup.php ./maintenance/importImages.php ./maintenance/runJobs.php ./maintenance/archives/upgradeLogging.php ./maintenance/deleteBatch.php ./maintenance/populateLogSearch.php ./maintenance/populateLogUsertext.php ./maintenance/gearman/gearmanWorker.php ./maintenance/populateRevisionLength.php ./maintenance/refreshLinks.php ./maintenance/deleteSelfExternals.php ./maintenance/upgrade1_5.php ./maintenance/rebuildFileCache.php ./includes/job/RefreshLinksJob.php ./includes/installer/MysqlUpdater.php ./maintenance/convertUserOptions.php ./maintenance/populateParentId.php ./maintenance/runBatchedQuery.php ./maintenance/upgrade1_5.php ./maintenance/waitForSlave.php ./maintenance/populateCategory.php ./maintenance/importImages.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86447
* Remove unused globalsSam Reed2011-04-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85789
* Followup to r85706 and friends: now that Math messages have been moved to ↵Brion Vibber2011-04-091-2/+2
| | | | | | | | | | | | | | extension, move out the settings list and constants. * MW_MATH_* constants are now defined in Math extension * Language::getMathNames() is removed * mathNames section in message files is removed * A hardcoded preference override in refreshLinks moved to MaintenanceRefreshLinksInit hook Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85735
* Rebuild raw sqlSam Reed2011-02-091-13/+23
| | | | | | | | | Remove old method_exists Add braces Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/81843
* Explicitally define $i = 0;Sam Reed2011-02-091-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/81841
* 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
* Part of bug 26280: added license headers to PHP files in maintenanceAlexandre Emsenhuber2010-12-161-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78508
* Changed global variables ($wgTitle and $wgArticle) to local onesAlexandre Emsenhuber2010-12-131-14/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78305
* Whitespace fixup under tha maint directory.Mark A. Hershberger2010-12-041-8/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77711
* Fix undefined $max when doing --dfn-onlyChad Horohoe2010-11-131-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/76629
* Get rid of php4ismChad Horohoe2010-09-191-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/73337
* Make fixLinksFromArticle public and staticChad Horohoe2010-08-201-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/71368
* Fixed a bunch of silly instances of [^!=]==\s*(true|false)Chad Horohoe2010-06-091-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/67707
* Stylize maintenance folder..Sam Reed2010-05-221-29/+29
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
* Make 'start' not required. As requested by ^demon on IRC...Happy-melon2010-01-131-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61014
* Make refreshLinks.php purge orphaned redirect table rows, i.e. rows whose ↵Roan Kattouw2009-12-291-5/+15
| | | | | | | rd_from refers to a page that's not a redirect or doesn't even exist Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60466
* Followup r60051, with the rest of the callers and removing a useless ↵Chad Horohoe2009-12-141-1/+1
| | | | | | | subclassing from DatabaseMssql Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60053
* (bug 18762) both redirects and links fixed if redirects-only switch not presentJure Kajzer2009-12-021-4/+15
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/59658
* Redo addArgs() as addArg() so we can actually do useful things with ↵Chad Horohoe2009-08-181-1/+1
| | | | | | | arguments like descriptions and proper requirement checks, similar to addOption() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55287
* * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar ↵Alexandre Emsenhuber2009-08-171-2/+2
| | | | | | | | | to "foreach ( $res as $row )" * identation fix in nukeNS.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55204
* 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-43/+249
| | | | | | | | | | | * 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
* Fixes for r45514 and r45516:Merlijn S. van Deen2009-01-131-0/+4
| | | | | | | | | | | | | * Removed deprecated constructs * Replaced SQL queries with their functional equivalents ** Removed deleteBatch function: equivalent to $dbw->delete() * Allow slave servers to catch up before deleting more rows * Fixed to use a new, unbuffered, slave database connection * This one should actually work Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45721
* * Added batch-size parameter to optionsWithArgsMerlijn S. van Deen2009-01-071-3/+3
| | | | | | | | * Added --batch-size example syntax Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45516
* Recommit of r45431 with these changes:Merlijn S. van Deen2009-01-071-13/+12
| | | | | | | | | | * Removed backspace characters in output * Small code update * Removed 'disabled' comment from refreshLinks.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45514
* Pull back r45431 for the moment "Updated deleteLinksFromNonexistent ↵Brion Vibber2009-01-071-11/+11
| | | | | | | | | function:" etc There's some funny output with \x08 stuff, and I don't want to fiddle with it just now... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45482
* Updated deleteLinksFromNonexistent function:Merlijn S. van Deen2009-01-061-11/+11
| | | | | | | | | | | | | - refreshLinks.inc: * New algorithm, conform Brions description in bug #16112; instead of one big delete, it is split up in blocks of (by default) 100 incorrect page_ids to remove. * Added function parameters - refreshLinks.php * New command-line parameter to set the number of page_ids to clean per batch. * Re-instated deleteLinksFromNonexistent run Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45431
* 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
* Add --old-redirects-only option to maintenance/refreshLinks.php, to add old ↵Aryeh Gregor2008-03-051-8/+15
| | | | | | | redirects to the redirect table. This may be worth trying out on at least some of the smaller wikis. It seems to work correctly, and pretty quickly for a couple thousand redirects to fix, although truncating the redirect table and running it inevitably gives a different number (probably due to incorrect redirect table entries to start with). With the limit options, it might be tried on bigger wikis too. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31566
* Fix for bug 12705. Fixed refreshLinks.php documentation.Tim Starling2008-01-221-15/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30050
* Add some stub docs to refreshLinks.php, so at least refreshLinks.php --help ↵Aryeh Gregor2007-11-261-0/+23
| | | | | | | doesn't start screwing with your database. $fname -> __METHOD__. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/27855