Commit graph

57 commits

Author SHA1 Message Date
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Tim Starling
6bfc746e83 * Eliminated message mode (OT_MSG), using OT_PREPROCESS instead. As proposed on wikitech-l.
* Fixed #tag behaviour in preprocess()
* Fixed #tag quote stripping regex
* Made MessageCache::getMessage() never transform its result, that is now left up to the caller. 
* A few other minor changes
2008-01-19 09:03:45 +00:00
Tim Starling
31baa8a17a Added ParserFirstCallInit hook. Deferred function registration in ParserFunctions until this hook is called. 2008-01-17 08:58:24 +00:00
Victor Vasiliev
017a62fa5a Autopromotion:
* Add APCOND_INGROUPS
* Fix comment
* Don't use array_unique() since we have groups as *keys* of $wgAutopromote
2008-01-14 18:52:55 +00:00
Aryeh Gregor
1ed4c2f2a3 Fixes for r28797.
* Mark private methods private using a keyword.
* Reject arrays with count == 2: these will fail when you do array_slice( ... , 1 ).
* Treat xor consistent with the other operations: if there's only one parameter the result should just evaluate that, not always return false; and any number of parameters should be allowed.
* Fail fast on bad input: throw an exception if Autopromote encounters a condition it can't understand (after asking extensions).
* Code documentation!  There were five lines of comments in the original commit.
* APCONDS_INGROUPS is not used, or for that matter defined.
* Editcount should use >=, not >, for consistency with past behavior and intuitiveness.
* "autopromoteUser" sounds like it's actually promoting the user somehow.  Renamed the function to getAutopromoteGroups.
* Make sure we don't return the same group more than once, when we're returning a group.  Probably not going to hurt, but may as well be clean.
2007-12-23 19:53:49 +00:00
Victor Vasiliev
8a7c8bdec6 Introduce new autopromotion system 2007-12-23 11:38:24 +00:00
Tim Starling
b6dba5bcfd * Refactored the parser. See my huge entry in RELEASE-NOTES for details.
* Made it possible to configure the parser class being used, via $wgParserConf.
* Moved defines from the top of Parser.php to either class constants or Defines.php
* Added Parser_DiffTest, a differential parser class for regression testing
* Added Parser_OldPP, a parser class which operates like the parser before this commit. I made one breaking change: a bugfix to avoid losing whitespace when adding MWTEMPLATESECTION markers. 
* Made internal tidy work with PHP 5
* Added the ability to supply a hook for template fetching via ParserOptions. This is handy for testing.
* Updated parserTests.txt to account for the various breaking changes I made. Removed a few parser tests that no longer test for anything useful.
2007-11-20 10:55:08 +00:00
Tim Starling
af7be3b1b7 Added EditFilterMerged hook: like EditFilter but uses the text after section merging. This allows ConfirmEdit and SpamBlacklist to share a parse with Article::editUpdates(). Article::prepareTextForEdit() facilitates this sharing. Unfortunately this means that {{REVISIONID}} will no longer work for current page views. 2007-11-12 07:30:40 +00:00
Roan Kattouw
d4ad5a8dbe Reverting r23562: accidentally modified phase3 rather than
branch/apiedit
2007-06-29 20:02:26 +00:00
Roan Kattouw
1a2e663a40 * Separating UI code and DB code in Article::rollback()
* Adding API rollback functionality
2007-06-29 19:55:46 +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
Tim Starling
ed4303922f Merged filerepo-work branch:
* Added support for configuration of an arbitrary number of commons-style file repositories.
* Split Image.php into filerepo/File.php and filerepo/LocalFile.php
* Renamed Image::getImagePath() to File::getPath()
* Added initial support for timestamp-based file fetching (OldLocalFile), to be expanded upon by aaron.
* Changed the interface for Image/File object creation: use wfFindFile() or wfLocalFile() depending on semantics
* ImageGallery::add() now accepts a title object as the first parameter
* Moved file handling operations on upload from SpecialUpload to File
* Removed path-related functions from ImageFunctions.php. Removed static path accessors from File. 
* Added a Content-Disposition header to thumb.php output
* Improved thumb.php error handling
* Updated the unit test suite to kind of partially work with modern computers. RunTests.php doesn't work just yet. Fixed an actual regression that the test suite detected -- moved some defines to Defines.php where they will be loaded consistently.
2007-05-30 21:02:32 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Tim Starling
f22cd6bd5d Fixed pollution of a backend function with UI-only features. Autosummaries off by default. 2006-11-08 08:06:51 +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
Tim Starling
43b2fb56b6 Merged localisation-work branch:
* Made lines from initialiseMessages() appear as list items during installation
* Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files.
* Introduced "stub global" framework to provide deferred initialisation of core modules. 
* Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point.
* Added DBA cache type, for BDB-style caches. 
* Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases.
* Simplified the initialisation API for LoadBalancer objects.
* Removed the broken altencoding feature.
* Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface.
* Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled.
* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. 
* Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). 
* Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts.
* Added "serialized" directory, for storing precompiled data in serialized form.
2006-07-26 07:15:39 +00:00
Rotem Liss
31c3012d45 Deprecating ; reordering the special pages array (whose the special page list is created from) by restricted and not restricted (like Special:Specialpages), not by rights which are not used to divide the list anymore to levels, and required us to use . 2006-07-23 12:36:37 +00:00
Tim Starling
adaf195148 Defer initialisation of the special page list, allow autoloading of the SpecialPage class. SpecialPage.php is not loaded for ordinary page views. Implemented some interfaces which allow special pages to do the same thing, although backwards compatibility is maintained. Old special page extensions will load SpecialPage during initialisation, so all extensions will have to be ported to get the full performance benefit. 2006-06-25 08:38:17 +00:00
Tim Starling
756cb86b0f Did some refactoring in Article.php:
* Introduced doEdit(), a simplified editing API. Rewrote updateArticle() and insertNewArticle() to call doEdit() and marked them deprecated. Callers should be updated to use doEdit() at a later date.
* Replaced $fname with __METHOD__
* Removed some unused member variables
* Fixed cache purging on null edit, hopefully it should work the same as action=purge now.
* Fixed doRedirect() callers, minor bug introduced with HTMLCacheUpdate.
2006-06-20 09:50:57 +00:00
Brion Vibber
26cc539cac * Skip loading of RecentChange.php except where needed
Moved constants to Define.php; removed unneeded includes until use of RecentChange:: in Article, Log, CheckUser
2006-01-09 21:09:33 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Ævar Arnfjörð Bjarmason
d77e1f4175 * Sorted $wgAvailableRights
* Added unwatchedpages to $wgAvailableRights (see http://mail.wikimedia.org/pipermail/wikitech-l/2006-January/033427.html)
2006-01-05 01:03:22 +00:00
Brion Vibber
3280e65cab * Removed Special:Validate, it's been superseded by the Review extension 2005-12-29 18:38:31 +00:00
Ævar Arnfjörð Bjarmason
a2bc1fc0e7 * Removing undelete permission, useless permission cruft, nothing uses it 2005-12-08 17:00:10 +00:00
Ævar Arnfjörð Bjarmason
7ecc2364b0 * whitespace 2005-09-27 19:48:54 +00:00
Ævar Arnfjörð Bjarmason
4cfc349052 * Removed renameuser permission, extension code 2005-09-24 00:49:55 +00:00
Brion Vibber
b1e03be6b4 * (bug 3412) Clean up date format handling so ~~~~-sigs work with default
format as designed. Documentation comments updated.
2005-09-13 06:55:43 +00:00
Tim Starling
7e63648db4 Formalising live performance hack 2005-07-25 06:57:12 +00:00
Ævar Arnfjörð Bjarmason
3e5277351e * Adding 'renameuser' to $wgAvailableRights 2005-07-04 14:18:56 +00:00
Brion Vibber
ddc2b784f8 Remove asksql priv from standard definitions; it's an extension thing. 2005-06-23 02:22:46 +00:00
Tim Starling
a7c938d0c3 ported $wgAntiLockFlags from REL1_4 2005-05-29 05:54:04 +00:00
Ævar Arnfjörð Bjarmason
27105c2129 * (bug 898) Mime type autodetection. 2005-05-21 07:46:17 +00:00
Ævar Arnfjörð Bjarmason
204d700135 * Documented the math constants
* Documented the cache types
2005-04-26 18:35:59 +00:00
Tim Starling
cdb3f96ab8 Various live patches ported from REL1_4 2005-04-12 04:03:21 +00:00
Tim Starling
52a4214b20 Smarter, more flexible cache type selection. Moved entire contents of ObjectCache.php to BagOStuff.php, to make way for some more generic code. 2005-04-09 10:30:45 +00:00
Ævar Arnfjörð Bjarmason
c009cdf4dd * Replacing NS_WP and NS_WIKIPEDIA with NS_PROJECT and NS_WP_TALK and
NS_WIKIPEDIA_TALK with NS_PROJECT_TALK, support for these aliases has now
  been removed.
2005-04-08 18:49:26 +00:00
Tim Starling
9bb6605166 introduced "import" right for Special:Import 2005-03-20 06:09:26 +00:00
Magnus Manske
2195bf8355 Re-establishing validation feature (the beginnings) 2005-03-17 13:47:05 +00:00
Guillaume Blanchard
b5036eb5ab removed NS_THREAD : not needed any more 2005-01-31 02:46:06 +00:00
Antoine Musso
ba4b6af5b5 Implement #858 : split user assignment and group rights. 2005-01-17 11:45:47 +00:00
Antoine Musso
991f798587 * Remove some hardcoded 0 instead of NS_MAIN
* Note in define.php that people should NOT change the integer values for NS_* constants
2005-01-11 18:18:16 +00:00
Brion Vibber
1f9032fe37 * Number 100 and beyond are reserved for custom namespaces;
* DO NOT assign standard namespaces at 100 or beyond.
2004-12-21 22:47:43 +00:00
Guillaume Blanchard
b21090671d remove thread's talk page namespace 2004-12-21 16:09:36 +00:00
Guillaume Blanchard
4bb7079f8a Reserved namespace 100 and 101 for forum-like's thread pages 2004-12-21 14:22:25 +00:00
Brion Vibber
1753353797 Revert unauthorized changes made without discussion of outstanding objections.
Please rework this as an extension.
2004-12-10 05:02:23 +00:00
Nicholas Pisarro, Jr
28de6d99d2 New feature: You can edit summaries and change the Minor Edit flag.
* Documented at http://meta.wikimedia.org/wiki/Feature_to_edit_summaries
2004-12-10 04:49:27 +00:00
Antoine Musso
0863dca4e0 Global array for user levels 2004-10-24 16:58:01 +00:00
Tim Starling
62c933c9c8 Moved some defines to Defines.php, removed unnecessary line from Language::getUserToggle() 2004-10-24 12:03:29 +00:00
Antoine Musso
e57ac87ceb Stop loading feed.php every time by moving available feeds classes in defines.php and removing call from skin.php 2004-09-17 23:08:22 +00:00
Antoine Musso
cab1e5d817 some documentation 2004-09-03 00:20:26 +00:00