1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +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.",
"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)
{