Bugfix: missing dollar sign from variable name

This commit is contained in:
Starbeamrainbowlabs 2015-10-03 12:22:54 +01:00
parent e5468d656e
commit 77027da111
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{