Commit graph

272 commits

Author SHA1 Message Date
Brion Vibber
11c751d812 Revert r49880, r49883, r49885 - add uniwiki/CreatePage extension to core
This looks pretty funky...

  A page with the title Main Page already exists. Would you like to edit the existing page?

  Yes. I want to contribute to the existing page.
  Yes. I want to contribute to the existing page.

Lack of interlinking tools means that this would promote creation of orphan pages, and the UI isn't very good. Doesn't seem to be a clear way to disable it in favor of alternate creation methods either.
2009-04-27 19:04:21 +00:00
Siebrand Mazeland
b3d5dbfed1 * add uniwiki/CreatePage extension to core
* add 'Create a page' to default sidebar
* remove uniwiki/CreatePage from Translate
* remove uniwiki/CreatePage from UniwikiSettings.php
* add special page aliases of CreatePage extension to MessagesXx.php
2009-04-25 18:47:41 +00:00
Andrew Garrett
155ddf6de4 Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia). 2009-04-24 01:31:17 +00:00
Chad Horohoe
9d91ed5e93 Make Whatlinkshere subclass SpecialPage. 2009-04-15 04:39:49 +00:00
Chad Horohoe
d59dd932e1 (bug 18151) Clean up duplicate code between Special:WantedPages, WantedFiles, WantedTemplates
* New WantedQueryPage class for all of these Wanted*s, moved some identical methods to it
* Removed sortDescending() because it was already defined as returning true @ QueryPage, no need to duplicate
2009-04-15 03:35:59 +00:00
Roan Kattouw
549b1688cc Redo r48746 (API userrights, reverted in r48909 and r48910) in a way that doesn't break CentralAuth. Basically, this works around PHP's inability (at least in < 5.3) to override static methods by adding a hook. Changes to CentralAuth in next commit. 2009-03-28 19:08:47 +00:00
Andrew Garrett
d4d0329547 Revert r48746 (API userrights). Breaks Special:GlobalGroupMembership by changing overridden methods to static methods, which cannot be overridden. Also reverts r48747, r48814, r48778, r48775 2009-03-27 05:59:42 +00:00
Andrew Garrett
6a91f0640c Move WikiMap class from CentralAuth to core, since it's used in 2 extensions at least now, and doesn't depend on CentralAuth 2009-03-26 13:31:30 +00:00
Roan Kattouw
3c52c2c64b * API: (bug 15935) Add action=userrights to the API
* Add ustoken=userrights to list=users
* Move the non-UI part of UserrightsPage::saveUserGroups() to the static and more generic doSaveUserGroups()
* Add a $reason parameter to UserrightsPage::addLogEntry() and make it and its helpers static
* Move UserrightsPage::changeableGroups() and changeableByGroup() to the User class and make the latter static
* In doSaveUserGroups(), drop groups that the user doesn't have from $remove (and those that they do have from $add), and return array($add, $remove)
* Fix up a comment in ApiQueryRecentChanges
2009-03-24 16:04:50 +00:00
Brion Vibber
6ebba897f1 * (bug 17714) Limited TIFF upload support now built in if 'tif' extension is
enabled. Image width and height are now recognized, and when using ImageMagick,
  optional flattening to PNG or JPEG for inline display can be enabled by setting
  $wgTiffThumbnailType

By default no thumbnailing will occur; only difference from previous will be that the image width/height is detected and displayed.

Not yet implemented:
* Multi-page support
* Cleverer thumbnailing for giant files
* Thumbnailing of any sort if not using ImageMagick
2009-03-16 22:03:20 +00:00
Aaron Schulz
07aabee46f * Refactored revisiondelete to use subclassing
* Removed $action usage
* Check edit token
2009-03-09 18:09:55 +00:00
Tim Starling
abbf76b7b1 * Refactored the forking code from runJobs.php to a new class called ForkController. Implemented the same sort of forking in gearmanWorker.php.
* Fixed debugging code left in in gearmanRefreshLinks.php
2009-02-26 06:02:32 +00:00
Tim Starling
4b66381cbf * Mostly reverted r41081 and related. Although the motivation (to save a query) is noble, it's a complex special case relying on subtle inter-module effects, making the code quite unclear and the performance advantage hard to reproduce in new code.
* r41081 was causing the job queue to be flooded with tiny htmlCacheUpdate jobs which were less than the batch size and so, according to the original logic, should have been done immediately. This was causing template updates to be delayed even when the template has few backlinks. This is fixed.
* Introduced a shared cache called BacklinkCache with the main purpose of sharing data from these backlink queries, thus recovering the performance of r41081.
* Refactored backlink partitioning code, which in r40741 was copied from HTMLCacheUpdate to LinksUpdate with a bug intact. The bug caused every htmlCacheUpdate or refreshLinks2 job to be split into at least two pieces even when number of rows is less than the batch size.
* Fixed a bug from r40741 causing refreshLinks2 jobs with end=false to be ignored.
* Made SquidUpdate::newFromTitles() accept a TitleArray
2009-02-16 14:26:34 +00:00
Roan Kattouw
8fc08c1869 API: (bug 16740) Adding list=protectedtitles to list create-protected titles 2009-02-13 21:34:46 +00:00
Chad Horohoe
cca4438f1d Rewrite Special:Export to subclass SpecialPage. 2009-02-06 23:36:12 +00:00
Roan Kattouw
bb3980dd8d * API: (bug 17007) Add action=import
* Add intoken=import to prop=info
* Store message key and arguments in WikiErrorMsg
2009-02-04 20:11:27 +00:00
Roan Kattouw
5e5684ec77 * API: (bug 17007) Add export functionality to the API
* Accessed through the export and exportnowrap parameters added to action=query
* To facilitate &exportnowrap, add ApiFormatRaw, a formatter that just spits out its input without any formatting (not accessible through &format= of course)
* Fix up the action=query description message to reflect the deprecation of query.php
2009-02-02 20:07:33 +00:00
Bryan Tong Minh
ff78c9382b Removing the new upload code from trunk so that patches do not accidentilly get applied here. 2009-01-30 22:08:23 +00:00
Andrew Garrett
9a3c1fcede Branch merge of change-tagging branch with trunk
-- Introduce tagging of individual changes (revisions, logs, and on recentchanges). The tags are customisable, and currently settable by the Abuse Filter and by the TorBlock extension. The tags can be styled on the various pages on which they appear.
-- Introduces a schema change, three new tables (valid_tag, change_tag, and tag_summary).
2009-01-28 19:08:18 +00:00
Alexandre Emsenhuber
f3f9e58d36 Don't use AutoLoader in class_exists() and interface_exists() in AutoLoader::loadAllExtensions() since we'll require() it if it doesn't exist 2009-01-27 20:29:20 +00:00
Alexandre Emsenhuber
1f23e8d0fc STAB STAB STAB
forgot to commit this file
2009-01-27 15:16:43 +00:00
Leons Petrazickis
5c7431a08e (bug 17028) Added support for IBM DB2 database. config/index.php has new interface elements that only show up if PHP has ibm_db2 module enabled. AutoLoader knows about the new DB2 classes. GlobalFunctions has a new constant for DB2 time format. Revision class fixed slightly. Also includes new PHP files containing the Database and Search API implementations for IBM DB2. 2009-01-14 22:20:15 +00:00
Alex Z
6779a2cc13 adding newline to end of wfDebug calls where it was missing. 2009-01-13 20:28:54 +00:00
Brion Vibber
2190984466 Revert r45231, r45235 "* (bug 674) Allow users to be blocked from editing a specific article"
Unexpected schema changes in the middle of code review and run-up to 1.14 freeze
2008-12-31 18:56:16 +00:00
Siebrand Mazeland
75c7147abb * Revert r45062 and related (Merge Interwiki extension to core) per brion.
* Merge changes made to Special:Interwiki after merge to core back into extension (messages will follow within 24 hours)
2008-12-31 18:44:54 +00:00
Victor Vasiliev
1f67478d1f * (bug 674) Allow users to be blocked from editing a specific article
** Also supports blocking user from editing whole namespace
** Fixed most issues which were found before
2008-12-31 17:25:47 +00:00
X!
6561a9e370 Add Interwiki extension to core. 2008-12-27 05:00:33 +00:00
Brion Vibber
97f77b9b1a Revert r44702, r44703, r44704 (wfInvoke and UserMailer refactor based on it) and r44715, r44721 (cleanup thereof)
As Tim notes, the weird callback setup in $wgHooks isn't really something we want to replicate or ever rely on ever again, as PHP's native callback syntax already handles things fine and is more consistent (and used extensively in the rest of MediaWiki).
May be other remaining issues with the refactor on top of bugs already discovered, but if it's going to be refactored to use callbacks it should be done using regular callbacks.
2008-12-23 18:08:43 +00:00
David McCabe
43c9235283 UserMailer bigtime refactor. Please test. 2008-12-17 07:08:16 +00:00
Ilmari Karonen
8b30615423 Add a new FileCache class to wrap RepoGroup::findFile() and findFiles(), and make wfFindFile() use it by default. This should improve performance for pages that refer to the same image several times, but the real benefit is that it allows batch file existence checks, à la LinkBatch, by collecting a set of titles (or DB keys) and calling FileCache::findFiles() on them to prefill the cache.
XXX: The code seems to more or less work, but it obviously needs more testing, regarding both stability and memory usage.  In particular, I have not tested file uploads yet -- there may be consistency issues there.
2008-12-14 05:47:48 +00:00
Chad Horohoe
18f85ab4a9 Complete rewrite of Special:Statistics:
* Now subclasses SpecialPage like it should
* All of the individual sections were split off into their own methods for readability
* Fixed Brion's comments on code review (r44509): not using <small> in the message, breaking to a new line, and keeping the description message separate
* Since -tooltip is a misleading name for the message, I renamed them to -desc, all message files and messages.inc have been updated
2008-12-13 01:45:49 +00:00
Brion Vibber
90e66d66d1 remove no longer needed line for Parser_OldPP (now banished!) 2008-12-12 23:57:18 +00:00
Tim Starling
ea471f0d79 Moved the IE content type checks to their own class. Disassembled IE 5 and 6 and added the results to the class. The entry points now return an array giving MIME types for all versions. The most important version difference is the introduction of an early check for PNG headers in IE 7. Added application/x-msdownload to disallowed types, haven't been able to reproduce any vulnerability, but it's better to be on the safe side. 2008-12-12 15:06:35 +00:00
Alexandre Emsenhuber
e7d8aeb7ed Fix for r44383: profiling error on unexisting class 2008-12-10 11:42:35 +00:00
David McCabe
64d53b6569 Revert r44386; depends on wfInvoke, also reverted. 2008-12-10 06:40:05 +00:00
David McCabe
cbafadf8d6 Refactored UserMailer.php. Please let me know if this breaks anything. 2008-12-10 06:02:14 +00:00
Aaron Schulz
dce4ab07e8 Reduce profile overhead here 2008-12-10 05:12:54 +00:00
Alexandre Emsenhuber
4b160a4d84 Check if wfDebug() is defined before calling it since AutoLoader.php is loaded before GlobalFunctions.php and may result in fatal error 2008-12-08 15:35:06 +00:00
Aaron Schulz
2f584f68a9 *Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway
*Add wfDebug() call on class load failure
2008-12-08 00:35:59 +00:00
Alexandre Emsenhuber
1c83ed1db3 Renamed PasswordReset class to SpecialResetpass and fixed an entry in SpecialUserlogin.php that was not renamed in r43971.
This also caused a regression with PasswordReset extension (renaming PasswordResetForm to PasswordReset) since this extension also have a PasswordReset class
2008-11-29 19:42:08 +00:00
Aaron Schulz
c851c28f76 Cleanup for r43841:
* Fix odd invocation to use the normal extend method for pages
* Add passwordaudit hooks
* Fix specialpage member variable collision
2008-11-26 03:37:11 +00:00
Chad Horohoe
e899407d48 Refactor Special:Import to extend SpecialPage instead of wfSpecialImport() stuff. 2008-11-26 02:10:56 +00:00
Andrew Garrett
6ef3fc4a2f Revert "Starter for a re-jig of hit counting (in a per-day table)."
That was supposed to be in a branch.
2008-11-19 12:05:33 +00:00
Andrew Garrett
1c2f4514f8 Starter for a re-jig of hit counting (in a per-day table).
Needs configurability, purty graphs, and some cleanup in the back-end.
2008-11-19 12:01:43 +00:00
Aaron Schulz
915af4890f * Re-commit new search UI code, disabled by default. Old form messages still used and thus kept.
* Update old-fashioned profile calls
2008-11-17 04:56:14 +00:00
Tim Starling
583127021b * Added the BitmapHandler_ClientOnly media handler, which allows server-side image scaling to be completely disabled for specific media types, via the $wgMediaHandlers configuration variable. 2008-11-06 20:59:34 +00:00
Tim Starling
c5bd0fae09 Removed scary YAML parsing code, the function of which is to load from a user input string, except if the string has no line breaks in it, in which case an arbitrary local file/URL is loaded and handed to the attacker on a nicely encapsulated silver platter. Doesn't appear to be used either by core or extensions, but you never know when someone might try. 2008-10-25 14:01:35 +00:00
Brion Vibber
90e12d48c7 Back out r42182 for now "Move UDP stuff to new UDP class"
UDP isn't a very clear name for this, especially since we use UDP protocols for multiple different things!

This class should probably be genericized a bit for _change notifications_, which there might be multiple backend implementations for, including the UDP->IRC bot gateway.
2008-10-19 23:59:39 +00:00
Danny B
7602d92d29 * back the UDP class accidentaly removed in r42201 2008-10-18 17:58:51 +00:00
Danny B
f6db98925c * A new special page to list wanted templates 2008-10-18 17:32:40 +00:00