summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpleshka2014-10-31 09:06:14 (GMT)
committerSpleshka2014-10-31 09:06:14 (GMT)
commit8ded2ec0c361f2c9a6e978ab5ae9a77395fc48a5 (patch)
tree59eda51b3762c2611b0510478bee783ffe70744d
parent5939c3eced2068f5d094279f4a60d01e524e914f (diff)
Fixed bug with expiring the current page when front page has been expired.
-rw-r--r--includes/expire.api.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/expire.api.inc b/includes/expire.api.inc
index c71b325..1a79936 100644
--- a/includes/expire.api.inc
+++ b/includes/expire.api.inc
@@ -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);