aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiDisabled.php
Commit message (Collapse)AuthorAgeFilesLines
* Add namespace to includes/api classesJames D. Forrester2024-09-251-0/+5
| | | | | Bug: T353458 Change-Id: I3ea6b08c5018ba03ba45c5766e1f46e12f6b8597
* Api: Fix some very old copyright statements for RoanJames D. Forrester2023-03-161-1/+1
| | | | Change-Id: I820a2d388922653a6a5b9048b0feaafbb4297d91
* ApiDisabled: Correctly fall back to api-help-no-extended-descriptionBrad Jorsch2020-01-131-1/+4
| | | | | | | | | ApiBase falls back to this message when the module itself doesn't define an extended-description message. ApiDisabled and ApiQueryDisabled should do so as well. Bug: T242534 Change-Id: I8f3ed17559363d9c66c5baf0ef7b0675714dc877
* Remove use of old API doc methodsBrad Jorsch2018-10-291-4/+0
| | | | | | | | | | | | | | | | | The following deprecated methods, intended for overriding by extensions, are no longer called and are hard deprecated. * ApiBase::getDescription() (deprecated in 1.25) * ApiBase::getParamDescription() (deprecated in 1.25) * ApiBase::getExamples() (deprecated in 1.25) * ApiBase::getDescriptionMessage() (deprecated in 1.30) Also, the 'APIGetDescription' and 'APIGetParamDescription' hooks have been removed, as their only use was to allow extensions to override values returned by getDescription() and getParamDescription(), respectively. Change-Id: I486c4ccab4eca6a85cb17c30dbb2439876123ba1
* Remove "Created on" from file header commentsUmherirrender2018-01-261-4/+0
| | | | | | | | | It is the job of git and svn to provide this information/metadata. The form was different, some with short, some with long month name some with leading zero at the day, some without. The year is also present in the Copyright clause Change-Id: If006907b82b9e45f13cfa2e45d41107a95570e1a
* API: Split description messages into summary + additional textBrad Jorsch2017-06-151-1/+9
| | | | | | | | To fix T123930, it would be very handy to have the summary for each module without any of the additional explanatory text. Bug: T166411 Change-Id: I778bab2b87971875aed4c804341ad59c1c6e021f
* API: i18n for warnings and errorsBrad Jorsch2016-12-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | API warnings and error messages are currently hard-coded English strings. This patch changes that. With a few exceptions, this patch should be compatible with non-updated extensions: * The change to ApiBase::$messageMap will blow up anything trying to mess with it. * The changes to the 'ApiCheckCanExecute' hook will cause a wrong (probably unparsed) error message to be emitted for extensions not already using an ApiMessage. Unless they're currently broken like Wikibase. Bug: T37074 Bug: T47843 Depends-On: Ia2b66b57cd4eaddc30b3ffdd7b97d6ca3e02d898 Depends-On: I2e1bb975bb0045476c03ebe6cdec00259bae22ec Depends-On: I53987bf87c48f6c00deec17a8e957d24fcc3eaa6 Depends-On: Ibf93a459eb62d30f7c70d20e91ec9faeb80d10ed Depends-On: I3cf889811f44a15935e454dd42f081164d4a098c Depends-On: Ieae527de86735ddcba34724730e8730fb277b99b Depends-On: I535344c29d51521147c2a26c341dae38cec3e931 Change-Id: Iae0e2ce3bd42dd4776a9779664086119ac188412
* API: Internationalize all remaining core API modulesBrad Jorsch2014-10-201-14/+2
| | | | | | | | | This also adds some new ApiBase::PARAM_* constants to generate more helpful help, and a method to override the default description message for the use of ApiDisabled and ApiQueryDisabled. Bug: 71638 Change-Id: Ic0c3d232e0498d58a043037e2e0c6f0b1c3edad3
* Add final period to API module descriptionsaddshore2014-03-101-1/+1
| | | | Change-Id: Icae68c1ab1fd0006e00a3a9a56ae8f831d3d0d45
* api: remove duplicate __contruct callsAntoine Musso2013-01-291-4/+0
| | | | | | | | For historical reasons, all our API class had a dummy __construct which simply calls their parent constructor. This patch removes all such occurences to save out some bytes. Change-Id: I667955d7821f780fc5ce23823d74dedb1729b9fa
* (bug 35885) remove api version string and parameterYuri Astrakhan2013-01-181-4/+0
| | | | | | | | | API was using SVN's version keyword which GIT does not support. All related methods were either removed, or for those that could have been used from extensions, emptied out. api.php?version now shows unrecognized param warning. Change-Id: I910ca1448ed2ed697ac19b17c486d130aa1d7e03
* escape HTML elements in docblock with double quotesAntoine Musso2012-07-151-1/+1
| | | | | | | | | | | | | | | | | | Doxygen choke on text enclosed by '<' and '>' since it tries to interpret them as HTML or XML elements. This patch adds double quotes in includes/api/*.php files around the two following strings: <Firstname>.<Lastname>@gmail.com <Firstname><Lastname>@gmail.com Which becomes: "<Firstname>.<Lastname>@gmail.com" "<Firstname><Lastname>@gmail.com" Tested locally, it prevents doxygen 1.8.0 related warnings. Change-Id: I36d82eb3fd4989ee3ffc65b0b527b83711d1ba69
* Change usage of quotes in API messages from ``x'' to "x".Siebrand Mazeland2012-01-131-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108847
* Removed the 'eclipse helper' bit on top of every API moduleJohn Du Hart2011-11-161-5/+0
| | | | | | | | It's a parctice that dates back to 2006 when the API was first written, and frankly isn't covered by the coding conventions. Same thing with the docblocks, they're all copypasted with some bits changed and don't even make sense if you look at them in the genereated code docs. I don't feel that any of us depend on this anymore (get a better IDE), so in the inerest of consistancy it's time we said goodbye to it. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/103273
* Based on diff to wikia, set more functions consistently public rather than ↵Sam Reed2011-08-171-1/+1
| | | | | | | protected Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94827
* Delete all the "API for MediaWiki 1.8+" commentsSam Reed2010-12-221-1/+1
| | | | | | | Add since to ApiQueryQueryPage Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78829
* Replace my old e-mail address with my new one in API comments. A bit ↵Roan Kattouw2010-12-221-1/+1
| | | | | | | outdated (dropped the old one in September '08) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78827
* Standardised file description headers, added @fileAlexandre Emsenhuber2010-08-071-2/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70647
* Correct the address of the FSF in some of the GPL headersDerk-Jan Hartman2010-06-211-1/+1
| | | | | | | 59 Temple Place -> 51 Franklin Street Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/68353
* Remove arrays from getDescription where we are only using 1 lineSam Reed2010-05-251-3/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66893
* Mixture of things.Sam Reed2010-05-111-1/+1
| | | | | | | | | | | Couple of class comments Normalisation of "." usage at end of lines (removed) Normalisation of {prefix}parameter as per bug 23461 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66232
* ApiDisabled.php: fix copyright symbol, coding style tweaksJack Phoenix2010-02-211-7/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62783
* Add/remove whitelines to increase readability in API code filesSam Reed2010-01-231-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61437
* stylize.php on API codeAryeh Gregor2010-01-111-5/+5
| | | | | | | | | | | | "I wouldn't object to stylizing the API code to bring it in line with the rest of MW on principle, but I'm not gonna bother myself." --Roan <http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60657#c5108> If you're seeing this commit in blames, tell your blame tool to ignore whitespace, e.g., git blame -w or svn blame -x -w. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60930
* * API: (bug 17774) API pretends action=query doesn't exist for users without ↵Roan Kattouw2009-03-061-0/+4
| | | | | | | | | | | | read rights * Instead of hiding read-restricted modules, throw an error when a user without read rights tries to use them * Do the same for write modules when $wgEnableWriteAPI is false * Indicate whether a module needs read or write rights in action=help and action=paraminfo * BREAKING CHANGE: action=purge now requires write rights and, for anonymous users, a POST request Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/48091
* API: Add ApiDisabled and ApiQueryDisabled classes so individual modules can ↵Roan Kattouw2008-09-251-0/+72
be disabled by putting $wgAPIModules['foo'] = 'ApiDisabled'; in LocalSettings.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41268