aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Article.php
diff options
context:
space:
mode:
authordaniel <daniel.kinzler@wikimedia.de>2012-10-16 12:38:20 +0200
committerDerk-Jan Hartman <hartman.wiki@gmail.com>2014-05-10 14:27:33 +0200
commit48d5e5b3c910b50b980a8902511b1c18f2233906 (patch)
tree140a231da753d9cbaec439c97ce6230af27b7aa6 /includes/Article.php
parent5fea642f16cefb08d32d69013b2bc845670f2486 (diff)
downloadmediawikicore-48d5e5b3c910b50b980a8902511b1c18f2233906.tar.gz
mediawikicore-48d5e5b3c910b50b980a8902511b1c18f2233906.zip
Introduce ContentGetParserOutput hook
This hooks allows extensions to override the normal model-specific rendering of page content. A typical use would be to provide syntax highlighting for pages that contain scripts. In that sense, ContentGetParserOutput is a generalization of the old ShowRawCssJs hook. This, together with I76412f9d, is a (hopefully) fixed version of the reverted Ibfb2cbefea44. Change-Id: I979e2438689648ba4c959d8083197ef14ce524e8
Diffstat (limited to 'includes/Article.php')
-rw-r--r--includes/Article.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/Article.php b/includes/Article.php
index 0a4b5ee30e33..3bb1563f7a92 100644
--- a/includes/Article.php
+++ b/includes/Article.php
@@ -832,8 +832,9 @@ class Article implements Page {
* Show a page view for a page formatted as CSS or JavaScript. To be called by
* Article::view() only.
*
- * This is hooked by SyntaxHighlight_GeSHi to do syntax highlighting of these
- * page views.
+ * This exists mostly to serve the deprecated ShowRawCssJs hook (used to customize these views).
+ * It has been replaced by the ContentGetParserOutput hook, which lets you do the same but with
+ * more flexibility.
*
* @param bool $showCacheHint Whether to show a message telling the user
* to clear the browser cache (default: true).