1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

feature-redirect: fix comment

This commit is contained in:
Starbeamrainbowlabs 2020-07-07 21:15:14 +01:00
parent 8aff75a805
commit 47b5855396
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -36,7 +36,7 @@ function update_redirect_metadata(&$index_entry, &$pagedata) {
$index_entry->redirect_target = $matches[1]; $index_entry->redirect_target = $matches[1];
$index_entry->redirect_absolute = false; $index_entry->redirect_absolute = false;
} }
// We don't disable absolute redirects here, because it's the view action that processes them - we only register them here. Checking here would result in pages that are supposed to be redirects being missed if redirect_absolute_enabled is turned on after such a page is created. // We don't disable absolute redirects here, because it's the view action that processes them - we only register them here. Checking here would result in pages that are supposed to be redirects being missed if redirect_absolute_enable is turned on after such a page is created.
elseif(preg_match("/^# ?REDIRECT ?\[[^\]]+\]\(([^)]+)\)/", $pagedata, $matches) === 1) { elseif(preg_match("/^# ?REDIRECT ?\[[^\]]+\]\(([^)]+)\)/", $pagedata, $matches) === 1) {
$index_entry->redirect = true; $index_entry->redirect = true;
$index_entry->redirect_target = $matches[1]; $index_entry->redirect_target = $matches[1];