Merge "Add a hook to allow extensions to prevent HTML file caching"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 19 Sep 2014 00:08:58 +0000 (00:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 19 Sep 2014 00:08:58 +0000 (00:08 +0000)
1  2 
docs/hooks.txt

diff --combined docs/hooks.txt
@@@ -1376,6 -1376,10 +1376,10 @@@ page history view, i.e. undo, rollback
  $rev: Revision object
  &$links: Array of HTML links
  
+ 'HTMLFileCache::useFileCache': Override whether a page should be cached in file
+ cache.
+ $context: An IContextSource object with information about the request being served.
  'ImageBeforeProduceHTML': Called before producing the HTML created by a wiki
  image insertion. You can skip the default logic entirely by returning false, or
  just modify a few things using call-by-reference.
@@@ -1550,10 -1554,6 +1554,10 @@@ $title: The page's Title
    Currently unused, but planned to provide support for marking individual
    language links in the UI, e.g. for featured articles.
  
 +'LanguageSelector': Hook to change the language selector available on a page.
 +$out: The output page.
 +$cssClassName: CSS class name of the language selector.
 +
  'LinkBegin': Used when generating internal and interwiki links in
  Linker::link(), before processing starts.  Return false to skip default
  processing and return $ret. See documentation for Linker::link() for details on
@@@ -2594,10 -2594,6 +2598,10 @@@ database result
  &$titleArray: set this to an object to override the default object returned
  $res: database result used to create the object
  
 +'TitleExists': Called when determining whether a page exists at a given title.
 +$title: The title being tested.
 +&$exists: Whether the title exists.
 +
  'TitleQuickPermissions': Called from Title::checkQuickPermissions to add to
  or override the quick permissions check.
  $title: The Title object being accessed