Commit graph

536 commits

Author SHA1 Message Date
Alexandre Emsenhuber
d9c46a0939 * Added UserGetLanguageObject hook to change the language used in $wgLang 2011-03-06 21:05:18 +00:00
Jack D. Pond
02ef2dc762 Documentation updates for r83371 2011-03-06 06:07:14 +00:00
Daniel Friesen
c525af5eee Followup r83141. Forgot to commit the hooks.txt update. 2011-03-03 11:00:08 +00:00
Platonides
426b1f116a Updated distributors docs.
Added load.php to the entry point list.
Mention maintenance/install.php existence.
Added section explaining that they shall run maintenance/update.php on update.
2011-02-26 22:53:11 +00:00
Max Semenik
1fdaf8db17 (bug 1379) Installer directory conflicts with some hosts' configuration panel.
Renamed config/ to mw-config/, however left aliases for b/c.
2011-02-26 12:35:23 +00:00
Alexandre Emsenhuber
b2a0cc74d5 Moved wfGetSiteNotice(), wfGetNamespaceNotice() and wfGetCachedNotice() to Skin call to allow passing the Skin object to the SiteNoticeBefore and SiteNoticeAfter hooks.
I didn't left compatibility functions since there's no other call to these functions in core or extensions.
2011-02-12 21:24:05 +00:00
Alexandre Emsenhuber
859bd8e70c * Fix hook name
* Update paths in findhooks script
2011-02-12 17:15:24 +00:00
Krinkle
30b881123f more clear 2011-02-04 03:30:50 +00:00
Krinkle
7a5c40b671 adding that Vector shipped with 1.16 in 2010 2011-02-04 03:30:14 +00:00
Sam Reed
6b9f655c2a Fixup r81467 2011-02-03 22:06:10 +00:00
Sam Reed
1231097194 bug 27133 - Update docs/skin.txt 2011-02-03 16:45:45 +00:00
Alexandre Emsenhuber
51c6afc751 * Replaced $wgMessageCache by MessageCache::singleton(); since we only use one instance of this class (as for ParserCache, LinkCache)
* MessageCache::singleton() calls wfGetMessageCacheStorage() directly instead of using $messageMemc, just in case this would be called before that variable is set
* Per TimStarling: also removed deprecated methods in MessageCache class: addMessages() and related, [get|set|enable|disable]Transform(), loadAllMessages(), loadMessageFile() and some others. Same for the legacyData stuff in LocalisationCache that was only used by MessageCache::addMessages() and related. 
* Converted remaining extensions
2011-01-26 15:42:04 +00:00
Robert Leverington
2a30aa1d25 Add new hook ArticlePrepareTextForEdit, called when preparing text to be saved.
Add new parser option "PreSaveTransform" that allows the pre-save transformation to be selectively disabled.
2011-01-16 21:12:26 +00:00
Alexandre Emsenhuber
10c8ebb2e7 Added ArticleViewFooter hook to allow extensions adding additional items to the footer of normal views 2011-01-14 21:54:29 +00:00
Chad Horohoe
26505b170a Fix concern raised by Brion in r74108 (but has really existed since the 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().
2011-01-13 22:58:55 +00:00
Daniel Friesen
e604e2186f Fix documentation for the SkinTemplateToolboxEnd hook which has a $sk (QuickTemplate) argument rather than the $tools array it says it has. 2011-01-13 22:06:48 +00:00
Roan Kattouw
7de66bd84f Add a hook for registering variables in ResourceLoaderStartUpModule::getConfig() to complement MakeGlobalVariablesScript 2011-01-09 11:44:52 +00:00
Rob Lanphier
1893285849 Followup to r79856: s/0.4/0.5/ and added "bytes" attribute to "text" element 2011-01-09 02:38:04 +00:00
Rob Lanphier
d76b01b332 Creating export-0.5.xsd as part of followup to r79856 2011-01-09 02:27:56 +00:00
Rob Lanphier
3e29b914b5 Made it so that our existing 0.4 exports validate 2011-01-09 02:12:35 +00:00
Daniel Friesen
c510db2665 Merging Vector's navigation_urls and SkinTemplate's content_actions code into content_navigation. content_actions is now built by folding content_navigation and cleaning it up a bit.
content_actions hooks no longer work and have been dropped from the code, the hooks that affected vector before now affect all skins.
A few logic changes were made to make for a clean merge:
- vector was using vector-???-??? messages while SkinTemplate was using '???' messages. So as a side effect of merging that together all skins now support messages like '$skinname-view-history' which will fallback to the standard message if not defined.
- For MediaWiki: pages where the page does not exist but the message does in the i18n system SkinTemplate displayed "Edit" while Vector displayed "Create"; All skins now display "Edit".
- For users without undelete permissions SkinTemplate displayed an "Undelete" tab if the user had deletedhistory and deletedtext permissions. Vector would only display the tab for users with both deletedhistory and undelete permissions; The new behavior in all skins is to always display a tab if you have deletedhistory (since Special:Undelete will always have something to display) but display a "View ... deleted" instead of "Undelete" message if you do not have undelete permissions.
- Skins no longer need to hardcode tests for the &action= to decide if they should ignore the accesskey on some tabs, tabs which should not have an accesskey in the current page now have a "tooltiponly" key set to true.
2010-12-31 23:30:00 +00:00
Niklas Laxström
15faf878e1 New method for making it easier for developers to get localised language names.
For now the core itself doesn't provide those, but extension can use the hook
to provide them. Callers should not except full coverage in every language.
2010-12-31 18:18:57 +00:00
Daniel Friesen
9893840edc Add SkinTemplateNavigation::SpecialPage and SkinTemplateNavigation::Universal hooks to match the content_actions based hooks that vector based hooks are missing. 2010-12-31 17:48:07 +00:00
Daniel Friesen
1bfd360cb8 Might as well fix this doc file... even though it's completely out of date... 2010-12-31 17:26:31 +00:00
Chad Horohoe
d411e290ab Tweak comment 2010-12-29 17:03:07 +00:00
Roan Kattouw
56b5aa18ed Merge querypage-work2 branch from trunk. The most relevant changes are:
* QueryPage now uses array-based query building instead of raw SQL
* Converted all QueryPage-based special pages that were using old-style wfSpecialFoo functions to new-style SpecialPage subclasses; this is possible because QueryPage is changed to extend SpecialPage
* Backward compatibility for extensions is partly preserved: getSQL() is fallen back on for QueryPage subclasses that don't implement getQueryInfo(), but getOrder() will be ignored (implement getOrderFields() instead). This also means that dual compatibility (1.18 compat and b/c with pre-1.18) is trivial

Extension changes will be merged after this commit.

These changes make it easier to write an API module for QueryPages (bug 14869); this wasn't done in the branch but will be done in trunk soon.
2010-12-22 14:16:25 +00:00
Bryan Tong Minh
f29e192da9 Follow-up r78297: allow the hook to break the execution; added &$term: could be useful for modifying the edit link 2010-12-13 20:00:43 +00:00
Sam Reed
8a9f0e54f5 Followup r65114 (per CR cabal), remove SpecialSearchGomatch, replace with SpecialSearchGo in SearchEngine::getNearMatch 2010-12-12 18:57:10 +00:00
Sam Reed
22d873f85d Fix typo in hooks.txt 2010-12-12 18:17:33 +00:00
Aaron Schulz
0bb1fb5cbd * Removed redundant revdelete msg above content
* Show bottom patrol link even if hook replaces preview content
* Hook doc tweaks
* Assorted minor cleanups
2010-12-11 05:32:48 +00:00
Daniel Friesen
55f0903c0b More skin system improvements; Create a new BaseTemplate class extended from QuickTemplate, this class will house helper methods that interact with QuickTemplate data set by SkinTemplate to help cut down on boilerplate for common uses of that data.
For the first helper in this class add a helper to use in generating a toolbox. Include a list item and link generating method that can be used to generate most of our sidebar links with minimal code.
Eventually this toolbox code will be used in code abstracting common sidebar generating code away into common helpers. For now make MonoBook and Vector and the skins based off of them use this method of generating toolboxes and sidebar links.
2010-12-06 17:47:53 +00:00
Alexandre Emsenhuber
cb6f556784 * (bug 26253) Removed $wgPostCommitUpdateList
As I said on the bug, this variable is not used since ages
2010-12-06 16:17:43 +00:00
Raimond Spekking
ac7fbc3bed Follow-up r76434, r76570,r76668: Pass skin object per CR 2010-11-14 19:45:55 +00:00
Raimond Spekking
49a678e29e Follow-up r76434, r76570: Add skinname per CR 2010-11-14 19:28:32 +00:00
Max Semenik
979c73e053 Mention load.php, rm repetition 2010-11-13 13:24:21 +00:00
Raimond Spekking
a1cd029838 Follow-up r76434: Run hook for Modern skin too per suggestion of Jack Phoenix 2010-11-12 12:16:48 +00:00
Raimond Spekking
47bf2bd024 * (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable
Patch by Yaron
2010-11-10 08:18:21 +00:00
Bryan Tong Minh
497dba23b2 Undeprecate UploadForm:BeforeProcessing. Instead only deprecate the code path that would return the user a blank form with no error message. 2010-11-08 21:07:10 +00:00
Bryan Tong Minh
e9fd126b9a (bug 25648) API discovery information has been added as RSD link in page <head> and by providing an API module action=rsd. Added hook ApiRsdServiceApis for extensions to add their own service to the services list.
Patch by Brion Vibber and Bryan Tong Minh.
2010-10-28 19:20:21 +00:00
Platonides
902bab26cd Address my own CR in r75332. 2010-10-26 22:34:18 +00:00
Platonides
76167d9f27 Follow up r74725. Also add $lang parameter to EditSectionLink.
Document the changes in hooks.txt
2010-10-14 22:13:43 +00:00
Neil Kandalgaonkar
08d28a3ae0 removing test file 2010-10-13 00:27:03 +00:00
Neil Kandalgaonkar
a2587e0837 testing if I can commit 2010-10-13 00:26:36 +00:00
Aaron Schulz
d6086a51bf Removed single-purpose HTMLCacheUpdate::doUpdate hook, now unused 2010-10-07 18:12:27 +00:00
Neil Kandalgaonkar
fa03d5d402 removing file I used to test commit access 2010-10-05 18:35:02 +00:00
Neil Kandalgaonkar
01b6813f48 testing commit access 2010-10-05 18:34:39 +00:00
Daniel Friesen
001df82cad Clean up names of my bodyAttr hooks on Brion's recomendation. 2010-10-04 05:38:48 +00:00
Daniel Friesen
1839a15957 Add to OutputPage::headElement a OutputPageBodyAttrs hook for extensions and a bodyAttrs callback to Skin so that Extensions and Skins are able to add attributes and classes to the <body> tag without neeing to do insane things. 2010-10-03 14:12:41 +00:00
Trevor Parscal
8f25c77bc2 Updated hooks documentation as per changes in r73971. 2010-09-29 19:06:32 +00:00
Platonides
3d408e8d5b Remove $wgServerName. Its only usage was for {{servername}}, and needed to be kept in sync with $wgServer in LocalSettings.
None of the 3 globals based on it changed if you set it in LocalSettings.

Note that all those !isset( $wgServerName ) in ApiTests were useless, since if not in LocalSettings it would be 'localhost', not null (as still are those !isset( $wgServer )).
2010-09-29 15:47:56 +00:00