From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/libs/replacers/HashtableReplacer.php | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 includes/libs/replacers/HashtableReplacer.php (limited to 'includes/libs/replacers/HashtableReplacer.php') diff --git a/includes/libs/replacers/HashtableReplacer.php b/includes/libs/replacers/HashtableReplacer.php new file mode 100644 index 00000000..b3c219d4 --- /dev/null +++ b/includes/libs/replacers/HashtableReplacer.php @@ -0,0 +1,44 @@ +table = $table; + $this->index = $index; + } + + /** + * @param array $matches + * @return mixed + */ + public function replace( array $matches ) { + return $this->table[$matches[$this->index]]; + } +} + -- cgit v1.2.3-54-g00ecf