Commit graph

44 commits

Author SHA1 Message Date
Siebrand Mazeland
f2f31fadc7 Update formatting in maintenance/ (2/4)
Change-Id: I2b791d3bff0de464b6bdaaeae0622c065389c31c
2014-04-23 20:08:42 +02:00
Ladsgroup
16a5102765 Change URLs to mediawiki.org in comments to HTTPS
These are only documentation fixes
http://www.mediawiki.org --> https://www.mediawiki.org

Change-Id: I62ad42be1a3aac410cc53e98ce79389ceddd8988
2014-03-20 16:59:46 +00:00
Timo Tijhof
beb1c4a0ec phpcs: More require/include is not a function
Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81.

Also updated usage in text in documentation and the
installer LocalSettingsGenerator.

Most of them were handled by this regex:
- find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$
- replace: $1 $2;

Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
2013-05-21 23:26:28 +02:00
umherirrender
21751b9ba7 echo is not a function
Removed parenthesis after echo

Change-Id: Ia533aedf63b11d15dcc6a5cf75a56134a4b11d86
2013-05-09 19:52:45 +00:00
umherirrender
bfb75bc8e2 Fixed spacing around parenthesis in languages/tests/maintenance
Change-Id: Idd4299d17f1fcf98ab1d635484cb4e880f35ee24
2013-04-28 15:57:34 +00:00
umherirrender
b114f5e1c1 Fixed some spacing in maintenance folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I9657f72996358f8c1c154cea1ea97970d973723c
2013-04-18 20:48:44 +02:00
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
Platonides
f77bd54df3 Make backupTestPass.inc require_once by itself its dependence on backup.inc
Change path-less requires to full path ones.

Change-Id: Ida37a3ec9bb1d5c99f4bbbf6d967cb40d0442e38
2012-05-06 22:31:03 +02:00
Antoine Musso
731b8aa809 warn that dumpBackup does not actually backup the wiki!
The user table is not dumped by that tool. The warning notice makes it clear
and will avoid someone having some trouble recovering his precious private
data.
2012-03-07 10:07:32 +00:00
Platonides
2dd3c958a4 Replace tabs with spaces to keep alignment.
The terminal tab size may not be 4 spaces, as this assumed.
2011-12-12 18:30:25 +00:00
Ariel Glenn
669e5b9318 export specified range of revisions (as stubs) 2011-11-02 07:58:43 +00:00
Chad Horohoe
5c4ddbbd52 Remove last wfDie()s from maintenance 2011-07-06 19:57:52 +00:00
Bryan Tong Minh
99385c945d Add --include-files option to dumpBackup.php to include the uploaded files in the XML stream. Uses new backend features from r85911. 2011-04-30 21:35:09 +00:00
Mark A. Hershberger
617a5b1e15 Whitespace fixup under tha maint directory. 2010-12-04 03:20:14 +00:00
Sam Reed
317fa6f530 bug 24132, apply documentation updates to dumpBackup.php
Slightly modified patch by Jonathan Wiltshire
2010-11-04 02:04:47 +00:00
Alexandre Emsenhuber
76bebf904c * Standardised file description headers
* added @file where needed
* added file description headers where needed
2010-10-03 09:25:28 +00:00
Chad Horohoe
7ee4e21e28 Partial revert r71363. I lied, these are used. They're just not documented for crap 2010-08-29 13:06:22 +00:00
Chad Horohoe
d7196d342e Fixup help output. Remove a few documented but unused options 2010-08-20 15:21:24 +00:00
Sam Reed
659778619c Stylize maintenance folder.. 2010-05-22 16:50:39 +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
Siebrand Mazeland
b786c448cd (bug 18432) Updated documentation for dumpBackup.php (patch contributed by Jidanni) 2009-05-17 19:28:02 +00:00
Aaron Schulz
c76ee491ac (bug 17189) Created 'stable versions only' dumps for wikis with FlaggedRevs 2009-03-02 19:48:41 +00:00
Aaron Schulz
7fafa40041 * Add XML log dump support
* TODO: make importer
2008-09-18 00:02:57 +00:00
Tim Starling
1daa0dc318 Don't break vim syntax highlighting 2008-06-04 01:48:25 +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
Brion Vibber
9660d42713 Some experimental support for including upload data in XML export, as specced. Usable with --uploads option on dumpBackups.php
Some issues:
* doesn't respond to the current v full-history modes
* won't pick up file entries with no corresponding page
* on default config, you may end up with 'localhost' in URLs :P
* synchronization and mutability problems
** DB lookups are made in the middle of the dump and may not be in sync with state at the beginning of the dump.
** URL to current version at time of dump could point to a different, future version in future
2008-03-04 02:03:52 +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
Brion Vibber
72a4abe588 * Skip additional setting of include_path in commandLine.inc (for non-Wikimedia mode)
* Fix some scripts that assumed include_path was set with various additional directories
Stuff now seems to mostly work when not overriding include_path.
Taking that out of LocalSettings is the next step... whee!
2007-06-06 16:01:14 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Tim Starling
3005679b0e * Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded. 
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
2006-10-03 13:00:52 +00:00
Brion Vibber
f2c29baf9f Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
Brion Vibber
ae741e3ec7 * Fix --report interval option for dumpTextPass 2006-02-19 23:00:00 +00:00
Brion Vibber
8c63b503b1 some more die-with-proper-return-code 2006-01-14 08:04:38 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Brion Vibber
5cc74d6426 Updated --help text (forgot to commit earlier) 2005-12-26 07:12:41 +00:00
Brion Vibber
ee372c3951 * Two-pass data dump for friendliness to the DB (--stub, then dumpTextPass.php)
* Data dump 'prefetch' mode to read normalized text from a prior dump
  (requires PHP 5, XMLReader extension)
Maybe these will keep dammit from killing our dump runs...
2005-10-16 17:33:41 +00:00
Brion Vibber
6adbb42bf1 * Added filter options, compression piping, and multiple output streams for
dumpBackup.php
2005-10-02 04:05:40 +00:00
Brion Vibber
99967490f9 * Add options to dumpBackup.php for making split/partial dumps by page id 2005-09-24 06:38:36 +00:00
Tim Starling
94fa9213e4 forward porting from REL1_5 2005-08-20 01:57:32 +00:00
Brion Vibber
af2177edfd Code cleanup: normalize case for intval(), strval(), floatval() calls. 2005-08-16 23:36:16 +00:00
Tim Starling
da2ef17d77 Added --pagelist option, plus some other tweaks made by brion 2005-07-22 22:52:30 +00:00
Brion Vibber
3c969fb741 * Accept --server option for database to read main query from on backup 2005-07-13 01:57:43 +00:00
Brion Vibber
6a9585b4aa Some code cleanup on Special:Import, add initial version of command-line
dump importer script (importDump.php). Can read from stdin or from file
on command-line (file can be auto-decompressed if gzip and zlib support).
Still needs some work, but basically functions.
2005-07-05 03:16:56 +00:00
Brion Vibber
aad99df7d4 * HistoryBlobStub: the last-used HistoryBlob is kept open to speed up
multiple-revision pulls
* Special:Export now includes page, revision, and user id numbers by
  default (previously this was disabled for no particular reason)
* dumpBackup.php can dump the full database to Export XML, with current
  revisions only or complete histories.
2005-05-08 08:17:12 +00:00