From 77027da111e105dfd0ae6dedf86ee0829e395cf5 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 3 Oct 2015 12:22:54 +0100 Subject: [PATCH] Bugfix: missing dollar sign from variable name --- modules/feature-redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/feature-redirect.php b/modules/feature-redirect.php index 524a9d7..264bfda 100644 --- a/modules/feature-redirect.php +++ b/modules/feature-redirect.php @@ -6,7 +6,7 @@ register_module([ "description" => "Adds support for redirect pages. Uses the same syntax that Mediawiki does.", "id" => "feature-redirect", "code" => function() { - register_save_preprocessor(function(&index_entry, &$pagedata) { + register_save_preprocessor(function(&$index_entry, &$pagedata) { $matches = []; if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata) === 1) {