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:
parent
e5468d656e
commit
77027da111
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue