Commit graph

26 commits

Author SHA1 Message Date
Roan Kattouw
726760153c API: Make usage of the parser cache in action=parse actually work; was broken since its introduction 2009-06-21 14:29:32 +00:00
Arash Boostani
c32a1ef480 Fixed bug #11213 - [edit] section links in printable version interfere with cut-and-paste of article text 2009-03-18 23:27:48 +00:00
Roan Kattouw
88f35cdf6e API: Some cleanup
* Aggressively intval() numeric things; addresses the concerns raised on bug 11633
* Use ApiQueryBase::addTitleInfo() everywhere
* Remove a drug-induced-looking line from ApiQueryWatchlist.php
2009-02-27 16:03:01 +00:00
Roan Kattouw
20fec70243 Fix up r46646: instead of outputting displaytitle="" when {{DISPLAYTITLE}} isn't used (or isn't valid), output the 'normal' title instead 2009-01-31 16:35:23 +00:00
Roan Kattouw
82b34d1b03 API: (bug 17239) Added prop=displaytitle to action=parse 2009-01-31 16:29:15 +00:00
Roan Kattouw
0dfff7a988 API: Fixing issue mentioned on bug 16129 comment #3: for certain inputs, action=parse dies with an internal error whining about $wgTitle not being set in OutputPage::parse(). This commit works around this by setting $wgTitle, but the parser and its friends should really leave $wgTitle alone, because people might want to parse non-$wgTitle titles, which the Parser::parse() docs suggest is possible (and it should be), but apparently isn't. 2008-12-20 20:00:07 +00:00
Roan Kattouw
7e35fc4b5a API: (bug 16515) Added pst and onlypst parameters to action=parse, which do a pre-save transform on the input 2008-12-04 15:51:39 +00:00
Roan Kattouw
ee3e7075a5 API: Added redirect resolution to action=parse. Based on a patch by Robert Chin 2008-10-24 12:28:14 +00:00
Tim Starling
7410147d02 Fixes for r41154 and r41155:
* Boolean parameters are widely accepted to reduce readability. Replaced the new boolean parameters with class constant parameters instead. 
* Re-added Revision::revText(), for backwards compatibility
* The getUser()/getUserText() changes near line 1223 of SpecialUndelete.php were incorrect, $file is an ArchivedFile not a Revision, and doesn't have any $isPublic parameters.
2008-09-24 09:44:45 +00:00
Aaron Schulz
804deee936 rev_deleted security improvements as well as fix for rawpages 2008-09-22 14:37:05 +00:00
Roan Kattouw
18a33b842b ApiParse: Don't display revid="" when there is no revid. 2008-07-03 15:01:50 +00:00
Roan Kattouw
8ed211efbf (bug 14471) Use HTMLTidy and generate limit report in action=parse 2008-06-12 11:50:01 +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
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
c338619cd3 (bug 13544) Added oldid parameter to action=parse to allow for parsing of old revisions 2008-04-10 10:51:40 +00:00
Brion Vibber
784d10e4d3 Kill a bunch of '=&' references for LinkCache, ParserCache, and MimeMagic singletons.
This is an old PHP 4-ism; only needed today if you want to be able to replace the singleton with another object by using the reference as an lval. :)
Killing them because they annoy me.
2008-04-09 18:23:34 +00:00
Roan Kattouw
99a2c57c5b (bug 13544) Added prop=revid to action=parse 2008-03-28 13:27:44 +00:00
Roan Kattouw
3535473571 Forgot a semicolon 2008-03-27 21:22:02 +00:00
Roan Kattouw
d710ef637c API: Don't use a nonexistent message name 2008-03-27 21:05:18 +00:00
Roan Kattouw
99081812d7 API: Adding page parameter to action=parse to facilitate parsing existing pages. Note that this isn't the same as action=raw: action=parse also returns the section tree and other useful stuff. The parameter is called "page" rather than "title" because there is a "title" parameter already and I decided to go the backwards compatible road for a change :D 2008-01-29 14:47:27 +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
bb7f8624d1 API:
* Removing action=render module (which was deprecated) in favor of action=parse
* Added prop parameter to action=parse so certain parts of the output can be left out
* action=parse&prop=text behaves pretty much exactly like action=render used to
2008-01-15 21:33:08 +00:00
Thomas Bleher
60731518db Fix some places where globals where used without being declared as
being global. Also remove one unused variable.
2008-01-10 16:51:45 +00:00
Victor Vasiliev
7847494e5d * Parser now returns list of sections (for API; some extensions probably also need it)
* Add list of sections to action=parse output
2007-12-27 20:14:07 +00:00
Victor Vasiliev
e2e70fd25f Fix a bug with pages without interwiki/etc. 2007-12-01 13:49:39 +00:00
Victor Vasiliev
17cf492e6b * Introduce action=parse to API. It deprecates action=render which will be removed once (perhaps before 1.12 release). New action returns full parser output instead of returning just rendering text 2007-12-01 13:37:02 +00:00