diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-21 02:03:17 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-21 02:07:27 +0200 |
commit | 70f366ce1d102e4712af2408e6dcf5432b1926c2 (patch) | |
tree | e582e476329a432f5642ead3d94e3d7af4d79862 /core/include/user/list.php | |
parent | 466420be275aeb0af1abd34639e5a570db50313f (diff) | |
download | blog-70f366ce1d102e4712af2408e6dcf5432b1926c2.tar.gz blog-70f366ce1d102e4712af2408e6dcf5432b1926c2.tar.xz blog-70f366ce1d102e4712af2408e6dcf5432b1926c2.zip |
Use getEntityURL method of Application class
This commit replaces all calls to "$Item->getURL()" with calls to the
previously added "getEntityURL" method of the "Application" class.
Diffstat (limited to 'core/include/user/list.php')
-rw-r--r-- | core/include/user/list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/include/user/list.php b/core/include/user/list.php index afc8179..4cba8f0 100644 --- a/core/include/user/list.php +++ b/core/include/user/list.php @@ -27,7 +27,7 @@ if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) { if(Application::get('USER.SINGLE_REDIRECT') === TRUE AND $count === '1') { $Statement = $Database->query(sprintf('SELECT id FROM %s LIMIT 1', User\Attribute::TABLE)); $User = User\Factory::build($Statement->fetchColumn()); - HTTP::redirect($User->getURL()); + HTTP::redirect(Application::getEntityURL($User)); } $execSQL = "SELECT id FROM %s ORDER BY {$site_sort} LIMIT ".(($currentSite-1) * $site_size).", {$site_size}"; |