Commit graph

57 commits

Author SHA1 Message Date
Roan Kattouw
eea6c59c96 Kill undefined variable warnings. 2008-09-27 11:26:34 +00:00
Roan Kattouw
7dc62e75ed (bug 15609) Add inprop=url (full URL to page and edit form) and inprop=readable (whether the current user can read the page) to prop=info 2008-09-25 15:55:09 +00:00
Roan Kattouw
3256fbb3bf (bug 15535) prop=info&inprop=protection doesn't list pre-1.10 protections if the page is also protected otherwise (1.10+ style or cascading) 2008-09-09 20:42:19 +00:00
Roan Kattouw
34a22d81f5 API: Improvements to action=emailuser:
* Add two messages from ApiEmailUser to ApiBase::$messageMap
* Add email tokens to prop=info
2008-08-26 21:34:47 +00:00
Brion Vibber
38831a4ba0 Fix for PHP < 5.2.3
'Foo::bar' is not a valid callback on earlier versions of PHP;
must specify as array( 'Foo', 'bar' )
2008-07-06 18:43:06 +00:00
Roan Kattouw
07db2080a5 Fix regression from r37046: tokens should not be supplied when in JSON callback mode. Also remove ApiQueryBase::getTokenFlag() which is now obsolete. 2008-07-05 11:18:50 +00:00
Roan Kattouw
0104fa1f0c Rewritten the way the API handles tokens:
* Instead of hardcoding stuff all over the place, use callbacks
* Extensions can now add their own tokens to prop=info or prop=revisions using hooks
2008-07-04 12:07:02 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Bryan Tong Minh
ff5b276836 API: Expose cascading protection via inprop=protection for non-existent pages. 2008-05-05 09:37:14 +00:00
Bryan Tong Minh
91b5617042 Avoid code duplication 2008-05-04 16:24:05 +00:00
Bryan Tong Minh
909203b366 (bug 13945) API: Retrieve cascading protection sources via inprop=protection 2008-05-04 15:10:58 +00:00
Brion Vibber
2368dd5bf1 * (bug 13768) pt_title field encoding fixed
pt_title field in page_protections was added without a binary marker when used on non-binary schema.
This means you get false matches for ASCII case-insensitive bits, and probably for horribly wrong UTF-8 mish-mashes as well.

Adds an updated to fix the field's encoding to binary, matching all our other title keys,
so you can join and get correct matches.

Revert r33473, which seems to assume that pt_title is supposed to be case-insensitive.
(Even if it was, it woudln't work correctly as written.)
2008-04-17 19:11:36 +00:00
Roan Kattouw
3c8ac10988 (bug 13768) Handling case-insensitivity of pt_title in prop=info 2008-04-17 12:58:20 +00:00
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
Roan Kattouw
6e0e8097c8 Oops 2008-03-27 13:55:16 +00:00
Roan Kattouw
b25035bed8 Fixing E_NOTICE 2008-03-27 13:54:43 +00:00
Roan Kattouw
0aeb9c5c7b Correcting slight mistake in r32413 2008-03-25 15:36:05 +00:00
Roan Kattouw
c60c6a37d0 API: Adding inprop=talkid,subjectid to prop=info 2008-03-25 15:31:24 +00:00
Roan Kattouw
19358606a1 API: Changing all modules' getParamDescription(), getAllowedParams() and getDescription() methods to public. ApiParamInfo needs them, and some versions of PHP threw fatal errors because they were protected. Oddly, other versions didn't (maybe because the caller and the callee have a common ancestor?) 2008-01-28 19:05:26 +00:00
Roan Kattouw
03e6a69433 API: Adding cascade flag to prop=info&inprop=protection 2008-01-15 15:23:27 +00:00
Huji
db7d75fba7 (bug 12608) (in continuation of r29719) Unifying the spelling of getDBkey() in the code. 2008-01-14 09:26:36 +00:00
Roan Kattouw
f023999c32 Improving r29456:
* The XML formatting bug is obscure and not trivial to fix, working around it is easier
* Added missing braces
2008-01-08 22:05:39 +00:00
Roan Kattouw
1aaec79b58 API: Temporary fix for broken XML rendering; XML formatter apparently doesn't like array(null). Will attempt to fix the real issue later 2008-01-08 21:42:00 +00:00
Roan Kattouw
0ffd093ea9 Returning protections more consistently 2008-01-08 16:42:18 +00:00
Roan Kattouw
7523ddffb4 * (bug 12543) API should support new protected titles system
* Changing ApiProtect to return ISO 8601 timestamps
* This doesn't really need a RELEASE-NOTES entry, as the protected titles system is already mentioned in RELEASE-NOTES
2008-01-08 16:31:50 +00:00
Roan Kattouw
5d8f2177c5 API:
* Add list=allcategories module
* Fix token-related E_NOTICEs
2007-12-10 15:55:12 +00:00
Victor Vasiliev
0495f90ebb Revert r28215: incorrectly moved files 2007-12-06 18:33:18 +00:00
Victor Vasiliev
4e4cdf079e Create includes/api/query for Query API and includes/api/edit for Edit API 2007-12-06 18:22:15 +00:00
Rotem Liss
27f805f86c Make API check for page restrictions in the old format too. 2007-11-27 10:22:14 +00:00
Roan Kattouw
0dc5e7b169 API: Really fixing bug 10898 this time 2007-09-06 11:28:04 +00:00
Roan Kattouw
90a3fb90e9 (bug 10898) API does not return an edit token for non-existent pages 2007-09-03 20:17:53 +00:00
Yuri Astrakhan
9bf28ce7c9 API: Added various edit tokens to prop=info (except rollback - will be added to revisions) 2007-08-01 22:46:22 +00:00
Roan Kattouw
7dc483c1ed API: Fixing a bug that caused inprop=protection to scream when no
existent titles were specified
2007-07-02 11:52:14 +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
Yuri Astrakhan
c17a9c53af API: enh 10260: Added page protection status query in prop=info. Applied modified patch from Roan Kattouw. 2007-06-18 02:00:23 +00:00
Yuri Astrakhan
7ca6bd761c API fixed bug 10112 generator=backlinks&prop=info broken 2007-06-03 17:22:09 +00:00
Yuri Astrakhan
cb38c11c84 API: documentation and cleanup. 2007-05-20 23:31:44 +00:00
Yuri Astrakhan
d732def31e API: fixed bug in categories: error when no valid titles are given 2007-05-19 23:54:22 +00:00
Yuri Astrakhan
aab4c9d205 API:
* breaking change: Converted a map of revisions into a list of revisions to allow easier json processing (no need to know map keys)
* html formatting now properly links urls ending with a '\n' string (jsonfm)
* regression: fixed allpages to return int instead of string for pageid and ns
* Added: info now returns page length, counter, and a new flag
2007-05-19 20:26:08 +00:00
Nick Jenkins
f9619da3f0 Yet more doc tweaks:
* Add @addtogroup tags to various classes, to try and group conceptually-related classes together.
* Add brief descriptions to various Special pages, thanks to Phil Boswell.
* Moving some docs to be right above the classes they represent, so that they are picked up.
2007-04-20 08:55:14 +00:00
Tim Starling
b1cd1b035c Fixed inefficient use of array_keys() introduced by Nick in r17880. If this is setting off alarms, then fix the alarms. 2006-11-25 17:11:58 +00:00
Nick Jenkins
14c53b728f Code housekeeping stuff (and barring any stuff-ups on my behalf, there should be no changes in behaviour whatsoever after this) -
* removing some unused global declarations.
* removing or commenting out or adding comments for unused local vars.
* Adding one or two local var declarations.
* Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness].
* remove one or two pass-by-reference function declarations where the value is not modified.
* Adding some braces to if-else blocks.
* In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether.
* Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences.

... up to "LinksUpdate.php" in the includes/ directory.
2006-11-23 08:25:56 +00:00
Yuri Astrakhan
3ec1b5b646 API * simple backlinks module (no redirect resolution yet)
* Cleaned up references
2006-10-25 03:54:56 +00:00
Yuri Astrakhan
1e861c9f48 API * touched field format
* Removed duplicate pageid
2006-10-21 08:44:07 +00:00
Yuri Astrakhan
88e42b579b API * Common field output function to simplify result generation
* Recent changes parameters
2006-10-21 08:26:32 +00:00
Yuri Astrakhan
10390af521 API * Added rudimentary RC list
* More readable query formulation
2006-10-20 07:10:18 +00:00
Yuri Astrakhan
31775400d8 *API: rewired generator (more work needed)
*API: structure cleanup: module names & parameters
2006-10-03 05:41:55 +00:00
Yuri Astrakhan
04399b2063 * API: added version information to each module (available via api.php?version command) 2006-10-01 21:20:55 +00:00