Commit graph

435 commits

Author SHA1 Message Date
Alexandre Emsenhuber
b2049915da * removed $this in parameters list since it's a reserved word
* consistency in parameter descriptions
2009-11-17 20:52:04 +00:00
Daniel Kinzler
ee0cbd5dca allow UploadVerification hooks to return error details 2009-11-13 16:08:17 +00:00
Bryan Tong Minh
6fec9d682b Follow-up to r58633 and r58628 (lqt): Rename Title::getProtectionTypes to Title::getRestrictionTypes and fix the hook name. 2009-11-09 12:05:30 +00:00
Bryan Tong Minh
9d64bbc404 * Add globalusage link to the file toc
* Add thumb of the file to Special:GlobalUsage
2009-11-08 11:09:20 +00:00
Alexandre Emsenhuber
27d800b4c4 Sync docs/hooks.txt:
* removed AbortNewAccountAuto since it was reverted
* added ArticleConfirmDelete and ImgAuthBeforeStream
2009-11-07 10:33:10 +00:00
Bryan Tong Minh
d3fe87c552 Add hook ImagePageAfterImageLinks for showing extra information on the image page after the imagelinks 2009-11-07 09:31:16 +00:00
Ariel Glenn
f873fbad9e document CacheHeadersAfterSet hook 2009-11-06 16:49:41 +00:00
Andrew Garrett
f6f5e90888 Enabling changes for r56828: some refactoring and code cleanup of the protection interface, including a new hook, generalisation to more restriction types than edit/move, and some other related changes. 2009-11-06 10:27:44 +00:00
Raimond Spekking
48fe5241a5 New hook getOtherBlockLogLink, called in Special:IPBlockList to show links to block logs of other blocking extensions, i.e. GlobalBlocking 2009-10-27 14:08:02 +00:00
Bryan Tong Minh
c824e30197 * Updated upload hooks documentation
* Allow users to submit a modified file description without ignoring warnings
2009-10-23 20:05:31 +00:00
Fenzik Joseph
a9357faf94 * function isValidPassword modified to return boolean(true/false)
* Added function getPasswordValidity return error message on failure for the given unvalidated password input.
* Replaced isValidPassword() fn call to getPasswordValidity() in SpecialUserlogin.php
2009-10-19 03:01:11 +00:00
Chad Horohoe
c319cc8968 (bug 13750) $wgCapitalLinks should be a per-namespace setting 2009-10-09 12:52:16 +00:00
Andrew Garrett
c4867954fd Missing docs/hooks update for r57459 2009-10-07 14:30:12 +00:00
Brion Vibber
76e4820e02 Cleanup r57359 -- removing PHP4-isms (references not needed to pass objects unless you're going to replace them with different objects as outparams) 2009-10-06 22:14:40 +00:00
Jack Phoenix
fb95ba0b14 redoing r38040: two new hooks for email confirmation/invalidation, both are in User class now so they should work even if email is confirmed through password reset (etc.) 2009-10-04 16:26:43 +00:00
Aaron Schulz
205d3bf0ca Tweak r57300: swap hook listing order :) 2009-10-02 18:47:38 +00:00
Aaron Schulz
0d833fe671 * Added $wgFlaggedRevsProtectLevels to allow for site defined review "protection" levels. Disables stabilization and a small fieldset to the protection form with the options.
* Added three ProtectionForm hooks for the above
* Removed PHP4-ism from getPageVisibilitySettings()
2009-10-02 18:46:19 +00:00
Brion Vibber
0d1d984313 Revert broken rewrite of login system; totally broken.
* Login doesn't attach to session properly, so can't stay logged in!
* Password field shown in plaintext!

If it just DOESN'T WORK please keep it on a work branch, don't put it in trunk!

Reverted:
r56682
r56683
r56684
r56686
r56688
r56696
r56699
r56702
r56703
r56704
r56782
r56896
2009-09-26 00:49:32 +00:00
Happy-melon
3e957cc137 Add new hook, AbortNewAccountAuto, to abort account creations from AuthPlugin- or ExtUser-driven requests. 2009-09-24 12:50:12 +00:00
Happy-melon
d3f901b029 Merge in Login rewrite, second time lucky. 2009-09-20 20:28:27 +00:00
Alex Z
71a97237b5 Replace the user rename log display for non-existent userpages with a hook (followup to r56251).
Update for Renameuser extension to follow.

Also make docs for LogEventsList::showLogExtract() actually useful
2009-09-14 18:10:13 +00:00
Tomasz Finc
7beb1c39e6 fixing spacing of comments 2009-09-09 21:24:42 +00:00
Tomasz Finc
7fd6e20278 missing an a 2009-09-09 20:54:15 +00:00
Tomasz Finc
abd034bee4 Adding new examples for 0.4 xsd 2009-09-09 19:21:58 +00:00
Brion Vibber
841014ad91 Revert broken rewrite of login forms:
r55990 "* Totally refactor includes/specials/SpecialUserlogin.php:"
r55991 "Followup to r55990 - Remove debugging hack :("
r55994 "Followup to r55990 - rename method to avoid PHP Strict warnings"
r55997 "Follow-up to r55990, per comments:"

Continued reports of breakage with the new version...
Non-vital changes of this magnitude should probably be worked up on a branch to ensure everything's consistent before pushing them to trunk.
2009-09-08 18:40:05 +00:00
Andrew Garrett
1ec4f9dbaa Add "Discussions" option to search when LiquidThreads is active. Includes some fixes to SpecialSearch.php, to allow this sort of change 2009-09-08 11:50:31 +00:00
Roan Kattouw
a369bbd7d9 Update hooks.txt for r55682 2009-09-07 19:29:55 +00:00
Happy-melon
fca012212f * Totally refactor includes/specials/SpecialUserlogin.php:
** Split backend stuff out into includes/Login.php
** Split account creation and login stuff up, into includes/specials/CreateAccount.php and includes/specials/Userlogin.php.
* Reimplement the special pages as subclasses of SpecialPage
* Use HTMLForm to generate the input forms
** Deprecate and delete includes/templates/Userlogin.php, which is horrible and old :D

This changes the syntax of the UserLoginForm and UserCreateForm hooks, and AuthPlugin::modifyUITemplate; they now receive the SpecialPage subclass rather than the template to work with. Update everything I could find in SVN to accommodate this.
2009-09-07 19:00:49 +00:00
Alexandre Emsenhuber
6649743e0b * (bug 19055) maintenance/rebuildrecentchanges.php now purges Special:Recentchanges's RSS and Atom feed cache
Purging cache timestamps should be sufficient since it won't allow cached versions to be used.
Also fix some errors in docs/memcached.txt.
Based on a patch by Jidanni - http://bug-attachment.wikimedia.org/attachment.cgi?id=6187
2009-08-28 18:04:40 +00:00
Bryan Tong Minh
c2033042ee * Code style & commenting on upload functions.
* Move isValidURI from UploadFromUrl to HttpFunctions.
* Made some functions in UploadBase static.
2009-08-26 17:05:24 +00:00
Brion Vibber
aa1740d88d Cleaning up some old PHP 4 object-reference usage in some edit filtering hooks.
There was a mix of uses of the reference and non-uses of the reference. :)
Reverts r53714 and fixes it from the other end by cleaning up the uses to not expect references.
2009-08-21 21:51:29 +00:00
Alex Z
195157b2c2 Re-implement r54638 in a higher-level way. Allows extensions to modify selection criteria for Special:Random or subsititute their own result. 2009-08-17 15:23:51 +00:00
Alexandre Emsenhuber
e14387dccb * maintenance.txt: the execute() method must be public to match Maintenance's one
* design.txt: whitespaces fix
2009-08-16 18:54:18 +00:00
Andrew Garrett
9a29dae0df Customise display of thread search result titles.
* Show the subject, not the title.
* Link to the post in context, not by itself.
2009-08-14 16:06:11 +00:00
Siebrand Mazeland
bdcaf4f7bf Update doc for deprecated 'MagicWordMagicWords': refer to $magicWords instead of LanguageGetMagic hook. 2009-08-14 11:48:40 +00:00
Andrew Garrett
1e9c060ce5 Add DiscussionThreading info to export-0.4.xsd. TODO: Test against real data to make sure I did it right :P 2009-08-14 10:17:06 +00:00
Brion Vibber
86b022c2bd Revert r54638 "Deprecate the $wgExtraRandompageSQL config variable by adding a hook, SpecialRandomBeforeSQL"
If we're going to make a generalizable plug-in point for extensions to supply their own randomization, we shouldn't be exposing it at the point of low-level database operations. The extension should instead be given the chance to pick an item any way it pleases and return a result or set of results to choose from.
2009-08-10 20:44:31 +00:00
Alex Z
1166f4b410 Deprecate the $wgExtraRandompageSQL config variable by adding a hook, SpecialRandomBeforeSQL
This allows extensions more flexibility to modify the query, 
or replace it entirely by setting their own query and returning false
$wgExtraRandompageSQL still retained for back-compat
2009-08-08 19:09:16 +00:00
Jan Luca Naumann
a9f717e8ed (r54511) Replace global array with hook 2009-08-06 13:40:13 +00:00
Tomasz Finc
3cd136d09b Updates for: per-revision delete flags, log exports, and a per-page redirect flag 2009-08-05 18:35:23 +00:00
Chad Horohoe
90a940cb6b (bug 15209) New hook right after initialization 2009-08-03 22:31:52 +00:00
Chad Horohoe
a1c51e18af Merge maintenance-work branch (now with less errors!):
* 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
2009-08-02 19:35:17 +00:00
Aryeh Gregor
bbbd4b91b4 Add tips to Linux distributors to docs/
After some discussion with Fedora's mediawiki maintainer, I thought this
would be helpful.  Probably it could use improvement in a variety of
ways, but it's a start.
2009-07-28 03:18:54 +00:00
Andrew Garrett
6e5dd5459a Incremental enabling changes to allow searching of LiquidThreads by page and by thread:
* Add three new hooks, XmlDumpWriterOpenPage, ModifyExportQuery and XmlDumpWriterWriteRevision, to WikiExporter class.
* Hook two of these events to add a DiscussionThreading section to XML dumps, containing the parent, ancestor and discussion page to which a post belongs, if it is indeed a LiquidThreads post (as determined by joining on the thread table).
* Deprecate old calling style for Thread constructor, the $children parameter has been unused for yonks.
2009-07-27 17:57:51 +00:00
Chad Horohoe
d0ff1e57ff * (bug 14201) Set $wgDBadminuser/$wgDBadminpassword during setup
* (bug 18768) Remove AdminSettings requirements. Maintenance environment will still load it if it exists, but it's not required for anything
2009-07-23 00:31:37 +00:00
Alexandre Emsenhuber
34342ce7c2 * update UploadComplete hook, the object is now a subclass of UploadBase
* whitespaces fixes
2009-07-21 11:48:52 +00:00
Alex Z
25370b6d0e (bug 19564) Update docs/hooks.txt 2009-07-19 20:03:13 +00:00
Andrew Garrett
e92ce78b5c LiquidThreads updates:
* Overhaul deletion system. Totally remove deletion special page, deletion will now be handled through the standard MediaWiki deletion system. When a thread's "root" is deleted, the thread itself is marked as deleted. When the page is re-undeleted, the thread will be marked as restored.
* Move some class files from Lqt* to simply *.
* Remove HistoryIterator class, pointless.
* Miscellaneous code quality as found.

Includes core changes to pass comment along with ArticleRevisionUndeleted hook.
2009-07-16 15:20:13 +00:00
Michael Dale
aefc40d749 here it is ... the upload-api, script-server, js2 (javascript phase2) branch merge 1st attempt.
Here is a short overview of changes and associated default configuration variables (most everything is off by default) also see ~soon to be updated~: http://www.mediawiki.org/wiki/Media_Projects_Overview

= Upload Improvements =
==Upload API ==
* Based on the early work of Bryan Tong and others it adds the upload option to the api.
* We rewrite Special:Upload page to include use the new refactoring
* Added in token checks in both the SpecialUpload.php page so avoids DOS / xss copy-by-url JavaScript based cross site POST file submissions

== Copy by URL==
$wgAllowCopyUploads = false;
* http class rewrite includes a new http background download see: includes/HttpFunctions.php

* spins off a php process that calls: maintenance/http_session_download.php
* pushes updates to the session and gives the user a progress bar on http copy uploads from other server progress (using js2 upload interface) (if not using the js2 upload interface it does the request in-place but the download is limited to the php ini timeout time)

== Firefogg ==
* Firefogg enables resumable upload by chunks
* progress indicators and conditional invokation (js2 system)
* and of-course client side transcoding.

= Script Server =
$wgEnableScriptLoader = false;
* off by default if $wgEnableScriptLoader is turned on script files are grouped, gziped, cached etc.
for more info see: http://www.mediawiki.org/wiki/Extension:ScriptLoader

* Includes some early skin js include fixes (skin/script system still lots of love)
* Includes a "javascript class autoloader" this is packaged into mwEmbed so that the mwEmbed library can work in stand alone mode (while retaining localization and script serving) (one such application is the make page for firefogg.org : http://www.firefogg.org/make/index.html  )
* The file that contains the autojavascript loading classes is: js2/php/jsAutoloadLocalClasses.php
* One can use this auto class loading dependency system with extensions and add-ons but I need to better document that.

= js2 system  / mwEmbed=
$wgEnableJS2system = false

* includes initial rewrite towards more jquery based javascript code
* especially for the Special:Upload page.
* Also the edit page include support for the "add-media-wizard"
* includes dependency loader for javascript that optionally takes advantage of the script-loader
* remote embedding of javascript interfaces (like embedding video, or commons media searching)

* $wgDebugJavaScript = false; .. .this variable lets you always get "always fresh javascript". When used with the script-loader it does not minify the script-loader output.

= mwEmbed =
* Will commit a separate patch to oggHandler that conditionally outputs  <video tag> to use the new javascript video player.
** mv_embed player includes: play-head, volume control, remote embedding, oggz-chop support across plugins.
* add-media-wizard adds easy inserts of media to pages (with import)

== jQuery==
* we include a base install of jQuery, jQuery ui and some plugins.
* all the javascript classes are in the scriptloader so its easy to load any set of jquery ui components that you may need using the script-server. You get a callback so you can then execute js with dependencies loaded.

== other stuff ==
there is a bit more code in js2 that pertains to sequence editing, timed text display and basic image editing. We include a base import of pixastic-lib & pixastic-editor... will work with the pixastic developer to try and ensure upstream compatibility on our usage of the library for in-browser photo and sequence manipulation.
2009-07-14 23:52:14 +00:00
ThomasV
ac0bb2fec8 documenting EditPage::importFormData 2009-07-08 18:47:46 +00:00