diff options
Diffstat (limited to 'core/include/post/list.php')
-rw-r--r-- | core/include/post/list.php | 2 |
1 files changed, 1 insertions, 1 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}"; |