Commit graph

16 commits

Author SHA1 Message Date
Victor Vasiliev
1293b0ef26 This should be array() by default 2007-12-28 08:41: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
Tim Starling
9f52185cec Add support for parse warnings. Currently only displayed on preview, but can be put in other places if desired. 2007-12-10 06:02:29 +00:00
Brion Vibber
b9ddd7440b Fix regression in r27416 -- {{REVISIONID}} was broken on save since a parsed copy from before revision-insert was used to insert into parser cache.
The parser now sets a "vary-revision" flag on the ParserOutput when using {{REVISIONID}}; Article then reparses the page after insertion if and only if required.
2007-11-15 02:54:28 +00:00
Rob Church
bac1a94e8b Coerce mOutputHooks to an array; makes things backwards-compatible with old cached ParserOutput objects 2007-08-15 20:46:51 +00:00
Tim Starling
164bb322f2 Basic integrated audio/video support, with Ogg implementation.
* JavaScript video player based loosely on Greg Maxwell's player
* Image page text snippet customisation
* Abstraction of transform parameters in the parser. Introduced Linker::makeImageLink2().
* Made canRender(), mustRender() depend on file, not just on handler. Moved width=0, height=0 checking to ImageHandler::canRender(), since audio streams have width=height=0 but should be rendered.

Also:
* Automatic upgrade for oldimage rows on image page view, allows media handler selection based on oi_*_mime
* oi_*_mime unconditionally referenced, REQUIRES SCHEMA UPGRADE
* Don't destroy file info for missing files on upgrade
* Simple, centralised extension message file handling
* Made MessageCache::loadAllMessages non-static, optimised for repeated-call case due to abuse in User.php
* Support for lightweight parser output hooks, with callback whitelist for security
* Moved Linker::formatSize() to Language, to join the new formatTimePeriod() and formatBitrate()
* Introduced MagicWordArray, regex capture trick requires that magic word IDs DO NOT CONTAIN HYPHENS.
2007-08-15 10:50:09 +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
Rob Church
19be1d25ac Fix up DISPLAYTITLE and enable per default:
* Clean up the mess in ParserOutput
* Reject (ignore) custom titles which don't normalise to the same as the current page -- THIS IS IMPORTANT OTHERWISE LINKING GOES TO POT (and not the good kind of pot)
[WARNING: Touches parser version. Old caches will be expired. You might wish to undo this and add some temporarily backwards-compatibility for a few days.]
2007-06-25 15:51:09 +00:00
Tim Starling
90ced852bd Removed mImageTimestamps, if an extension needs this then it can be set in a ParserAfterTidy hook, using a single DB query. 2007-06-20 07:10:06 +00:00
Aaron Schulz
481f419e02 *Use null for time/rev ID for templates/images when they don't exist, rather than "get the one from jan 1, 1970" :) 2007-05-31 17:15:44 +00:00
Aaron Schulz
17551136ff *Add BeforeGalleryFindFile, TitleLinkUpdatesAfterCompletion, BeforeParserFetchTemplateAndtitle, BeforeParserMakeImageLinkObj, BeforeParserrenderImageGallery; make parser outputs and output page record images -> timestamps used and templates -> revision ids 2007-05-31 16:01:26 +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
d3e07758d4 Generic method to add stylesheets and scripts to the header from parser extensions. Using a hook is inefficient since it requires loading the code on a parser cache hit. This feature saves the header text to the parser cache, and writes it to the output with no hook being called. Ugly getScript() hack to make it work with third-party skins. 2007-04-03 21:58:18 +00:00
Antoine Musso
5f8ab0b700 Fix an error introduced with r19483. Pointed out by LeonWP. 2007-01-20 21:22:31 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
52d2e48d27 Split out ParserOptions and ParserOutput classes in their own files.
Made using svn copy so the logs are kept.
2007-01-20 12:50:56 +00:00