Commit 8ded2ec0 authored by Spleshka's avatar Spleshka

Fixed bug with expiring the current page when front page has been expired.

parent 5939c3ec
......@@ -406,6 +406,12 @@ class ExpireAPI {
$urls[$path] = $path;
$wildcards[$path] = $wildcard;
// Don't process empty pass, because otherwise drupal will return us
// alias for the current page. And that is not what we actually want.
if ($path == NULL) {
continue;
}
// Get the path alias for this path, and add it to the array if one was
// found.
$alias = drupal_get_path_alias($path, $langcode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment