diff options
Diffstat (limited to 'core/include/post')
-rw-r--r-- | core/include/post/list.php | 2 | ||||
-rw-r--r-- | core/include/post/main.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/include/post/list.php b/core/include/post/list.php index 0f5ef1f..3fd9a44 100644 --- a/core/include/post/list.php +++ b/core/include/post/list.php @@ -27,7 +27,7 @@ if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) { if(Application::get('POST.SINGLE_REDIRECT') === TRUE AND $count === '1') { $Statement = $Database->query(sprintf('SELECT id FROM %s LIMIT 1', Post\Attribute::TABLE)); $Post = Post\Factory::build($Statement->fetchColumn()); - HTTP::redirect($Post->getURL()); + HTTP::redirect(Application::getEntityURL($Post)); } $execSQL = "SELECT id FROM %s ORDER BY {$site_sort} LIMIT ".(($currentSite-1) * $site_size).", {$site_size}"; diff --git a/core/include/post/main.php b/core/include/post/main.php index 8c65740..537873c 100644 --- a/core/include/post/main.php +++ b/core/include/post/main.php @@ -70,7 +70,7 @@ catch(Post\Exception $Exception) { $Post = Post\Factory::build($param); } - HTTP::redirect($Post->getURL()); + HTTP::redirect(Application::getEntityURL($Post)); } catch(Post\Exception $Exception) { |