From 220c59be9a0862ffa2ba15f0f333cad7f00f18bd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 7 Jan 2009 21:09:18 +0000 Subject: [PATCH] (bug 16923) New parameter value diff=review for the URL --- StartProfiler.php | 3 ++- docs/hooks.txt | 7 +++++++ includes/diff/DifferenceEngine.php | 5 +---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/StartProfiler.php b/StartProfiler.php index 3fcf69e6e5..6de8d52082 100644 --- a/StartProfiler.php +++ b/StartProfiler.php @@ -1,6 +1,7 @@ mNewid = intval($old); - $this->mOldid = $this->mTitle->getPreviousRevisionID( $this->mNewid ); - } elseif ( 'next' === $new ) { # Show diff between revision $old and the previous one. # Get previous one from DB. @@ -62,10 +59,10 @@ class DifferenceEngine { # revision is cur, which is "0". $this->mNewid = 0; } - } else { $this->mOldid = intval($old); $this->mNewid = intval($new); + wfRunHooks( 'NewDifferenceEngine', array(&$titleObj, &$this->mOldid, &$this->mNewid, $old, $new) ); } $this->mRcidMarkPatrolled = intval($rcid); # force it to be an integer $this->mRefreshCache = $refreshCache; -- 2.20.1