From fa95af79fcd9465dc13375a3dc657aa2026d533a Mon Sep 17 00:00:00 2001 From: azett Date: Sat, 2 Jul 2022 13:01:21 +0200 Subject: [PATCH] fixes #126 --- fp-content/delete.me | 2 +- fp-plugins/prettyurls/plugin.prettyurls.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fp-content/delete.me b/fp-content/delete.me index 2995a4d..967d15c 100644 --- a/fp-content/delete.me +++ b/fp-content/delete.me @@ -1 +1 @@ -dummy \ No newline at end of file +Please do not mind me at all, just sitting here waiting for the bus :) \ No newline at end of file diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index 3890a51..d424597 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -272,7 +272,7 @@ class Plugin_PrettyURLs { function cache_init() { global $fp_params; - $this->fp_params = & $fp_params; + $this->fp_params = &$fp_params; $url = $this->get_url(); if (PRETTYURLS_TITLES) { @@ -407,6 +407,10 @@ class Plugin_PrettyURLs { $this->cache_delete_elem($id, $date); + if ($this->index [$date ['y']] [$date ['m']] === false) { + $this->index [$date ['y']] [$date ['m']] = array(); + } + $this->index [$date ['y']] [$date ['m']] [$date ['d']] [md5($title)] = $id; $this->cache_save(); @@ -451,7 +455,7 @@ class Plugin_PrettyURLs { function nextprevlink($nextprev, $v) { global $fpdb; - $q = & $fpdb->getQuery(); + $q = &$fpdb->getQuery(); list ($caption, $id) = call_user_func(array( &$q,