1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

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

View file

@ -6,7 +6,7 @@ register_module([
"description" => "Adds support for redirect pages. Uses the same syntax that Mediawiki does.", "description" => "Adds support for redirect pages. Uses the same syntax that Mediawiki does.",
"id" => "feature-redirect", "id" => "feature-redirect",
"code" => function() { "code" => function() {
register_save_preprocessor(function(&index_entry, &$pagedata) { register_save_preprocessor(function(&$index_entry, &$pagedata) {
$matches = []; $matches = [];
if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata) === 1) if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata) === 1)
{ {