mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
feature-redirect: fix comment
This commit is contained in:
parent
8aff75a805
commit
47b5855396
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function update_redirect_metadata(&$index_entry, &$pagedata) {
|
|||
$index_entry->redirect_target = $matches[1];
|
||||
$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) {
|
||||
$index_entry->redirect = true;
|
||||
$index_entry->redirect_target = $matches[1];
|
||||
|
|
Loading…
Reference in a new issue