From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/DeprecatedGlobal.php | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 includes/DeprecatedGlobal.php (limited to 'includes/DeprecatedGlobal.php') diff --git a/includes/DeprecatedGlobal.php b/includes/DeprecatedGlobal.php new file mode 100644 index 00000000..4d7b9689 --- /dev/null +++ b/includes/DeprecatedGlobal.php @@ -0,0 +1,55 @@ +mRealValue = $realValue; + $this->mVersion = $version; + } + + function _newObject() { + /* Put the caller offset for wfDeprecated as 6, as + * that gives the function that uses this object, since: + * 1 = this function ( _newObject ) + * 2 = StubObject::_unstub + * 3 = StubObject::_call + * 4 = StubObject::__call + * 5 = DeprecatedGlobal:: + * 6 = Actual function using the global. + * Of course its theoretically possible to have other call + * sequences for this method, but that seems to be + * rather unlikely. + */ + wfDeprecated( '$' . $this->mGlobal, $this->mVersion, false, 6 ); + return $this->mRealValue; + } +} -- cgit v1.2.3-54-g00ecf