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:
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.",
|
"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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue