mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Remove debug statemenets
This commit is contained in:
parent
10cb0600bd
commit
00940645c7
2 changed files with 0 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
error_log("Initialising redirect page support");
|
|
||||||
register_module([
|
register_module([
|
||||||
"name" => "Redirect pages",
|
"name" => "Redirect pages",
|
||||||
"version" => "0.1",
|
"version" => "0.1",
|
||||||
|
@ -8,7 +7,6 @@ register_module([
|
||||||
"id" => "feature-redirect",
|
"id" => "feature-redirect",
|
||||||
"code" => function() {
|
"code" => function() {
|
||||||
register_save_preprocessor(function(&$index_entry, &$pagedata) {
|
register_save_preprocessor(function(&$index_entry, &$pagedata) {
|
||||||
error_log("Running redirect check");
|
|
||||||
$matches = [];
|
$matches = [];
|
||||||
if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata, $matches) === 1)
|
if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata, $matches) === 1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -143,7 +143,6 @@ register_module([
|
||||||
// Execute all the preprocessors
|
// Execute all the preprocessors
|
||||||
foreach($save_preprocessors as $func)
|
foreach($save_preprocessors as $func)
|
||||||
{
|
{
|
||||||
error_log("Executing handler");
|
|
||||||
$func($pageindex->$page, $pagedata);
|
$func($pageindex->$page, $pagedata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue