From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/ScopedCallback.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 includes/ScopedCallback.php (limited to 'includes/ScopedCallback.php') diff --git a/includes/ScopedCallback.php b/includes/ScopedCallback.php new file mode 100644 index 00000000..1d5b26bf --- /dev/null +++ b/includes/ScopedCallback.php @@ -0,0 +1,40 @@ +callback = $callback; + } + + function __destruct() { + call_user_func( $this->callback ); + } +} -- cgit v1.2.3-54-g00ecf