Skip to content

Commit 967324f

Browse files
authored
[6.0] admin mod_popular deprecated getUser (#45792)
1 parent d1a14b1 commit 967324f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/modules/mod_popular/src/Helper/PopularHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class PopularHelper
4040
*/
4141
public static function getList(Registry $params, ArticlesModel $model)
4242
{
43-
$user = Factory::getUser();
43+
$user = Factory::getApplication()->getIdentity();
4444

4545
// Set List SELECT
4646
$model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, ' .

0 commit comments

Comments
 (0)