From 8557f29f5edde2e19dfbc3045d9e75b2f56cb851 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 9 Feb 2010 06:12:15 +0000 Subject: [PATCH] Revert r58635 and related, unnecessary and incorrect use of the hook mechanism --- docs/hooks.txt | 5 ----- includes/OutputPage.php | 1 - 2 files changed, 6 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index a74d4bcbf8..2134993df1 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -552,11 +552,6 @@ $user: the user who did the block (not the one being blocked) '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 diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 872cd4f8cc..ef8e3fdd55 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1401,7 +1401,6 @@ class OutputPage { $response->header( 'Cache-Control: no-cache, no-store, max-age=0, must-revalidate' ); $response->header( 'Pragma: no-cache' ); } - wfRunHooks('CacheHeadersAfterSet', array( $this ) ); } /** -- 2.20.1