http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62167

Revision: 62167
Author:   tstarling
Date:     2010-02-09 06:12:15 +0000 (Tue, 09 Feb 2010)

Log Message:
-----------
Revert r58635 and related, unnecessary and incorrect use of the hook mechanism

Modified Paths:
--------------
    trunk/phase3/docs/hooks.txt
    trunk/phase3/includes/OutputPage.php

Modified: trunk/phase3/docs/hooks.txt
===================================================================
--- trunk/phase3/docs/hooks.txt 2010-02-09 06:10:33 UTC (rev 62166)
+++ trunk/phase3/docs/hooks.txt 2010-02-09 06:12:15 UTC (rev 62167)
@@ -552,11 +552,6 @@
 'BookInformation': Before information output on Special:Booksources
 $isbn: ISBN to show information for
 $output: OutputPage object in use
-
-'CacheHeadersAfterSet': after cache headers have been set in 
-OutputPage::sendCacheControl, so they can be overridden without 
-disabling output method
-$out: OutputPage instance
  
 'CategoryPageView': before viewing a categorypage in CategoryPage::view
 $catpage: CategoryPage instance

Modified: trunk/phase3/includes/OutputPage.php
===================================================================
--- trunk/phase3/includes/OutputPage.php        2010-02-09 06:10:33 UTC (rev 
62166)
+++ trunk/phase3/includes/OutputPage.php        2010-02-09 06:12:15 UTC (rev 
62167)
@@ -1401,7 +1401,6 @@
                        $response->header( 'Cache-Control: no-cache, no-store, 
max-age=0, must-revalidate' );
                        $response->header( 'Pragma: no-cache' );
                }
-               wfRunHooks('CacheHeadersAfterSet', array( $this ) );
        }
 
        /**



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to