diff --git a/Sources/Actions/Admin/Mail.php b/Sources/Actions/Admin/Mail.php index 1ed4073adc..0005c68c10 100644 --- a/Sources/Actions/Admin/Mail.php +++ b/Sources/Actions/Admin/Mail.php @@ -153,10 +153,10 @@ public function browse(): void 'default_sort_col' => 'age', 'no_items_label' => Lang::$txt['mailqueue_no_items'], 'get_items' => array( - 'function' => 'list_getMailQueue', + 'function' => __CLASS__ . '::list_getMailQueue', ), 'get_count' => array( - 'function' => 'list_getMailQueueSize', + 'function' => __CLASS__ . '::list_getMailQueueSize', ), 'columns' => array( 'subject' => array( diff --git a/Sources/Actions/Moderation/Posts.php b/Sources/Actions/Moderation/Posts.php index 470402b681..cc3cf73a57 100644 --- a/Sources/Actions/Moderation/Posts.php +++ b/Sources/Actions/Moderation/Posts.php @@ -560,13 +560,13 @@ public function attachments(): void 'base_href' => Config::$scripturl . '?action=moderate;area=attachmod;sa=attachments', 'default_sort_col' => 'attach_name', 'get_items' => array( - 'function' => 'list_getUnapprovedAttachments', + 'function' => __CLASS__ . '::list_getUnapprovedAttachments', 'params' => array( $approve_query, ), ), 'get_count' => array( - 'function' => 'list_getNumUnapprovedAttachments', + 'function' => __CLASS__ . '::list_getNumUnapprovedAttachments', 'params' => array( $approve_query, ), diff --git a/Sources/Actions/Moderation/WatchedUsers.php b/Sources/Actions/Moderation/WatchedUsers.php index 3b3313c381..f1e4b30b62 100644 --- a/Sources/Actions/Moderation/WatchedUsers.php +++ b/Sources/Actions/Moderation/WatchedUsers.php @@ -118,14 +118,14 @@ public function execute(): void 'base_href' => Config::$scripturl . '?action=moderate;area=userwatch;sa=' . (Utils::$context['view_posts'] ? 'post' : 'member'), 'default_sort_col' => Utils::$context['view_posts'] ? '' : 'member', 'get_items' => array( - 'function' => Utils::$context['view_posts'] ? 'list_getWatchedUserPosts' : 'list_getWatchedUsers', + 'function' => Utils::$context['view_posts'] ? __CLASS__ . '::list_getWatchedUserPosts' : __CLASS__ . '::list_getWatchedUsers', 'params' => array( $approve_query, $delete_boards, ), ), 'get_count' => array( - 'function' => Utils::$context['view_posts'] ? 'list_getWatchedUserPostsCount' : 'list_getWatchedUserCount', + 'function' => Utils::$context['view_posts'] ? 'list_getWatchedUserPostsCount' : __CLASS__ . '::list_getWatchedUserCount', 'params' => array( $approve_query, ), diff --git a/Sources/Actions/TrackIP.php b/Sources/Actions/TrackIP.php index 596871f2e6..08bee8c635 100644 --- a/Sources/Actions/TrackIP.php +++ b/Sources/Actions/TrackIP.php @@ -164,14 +164,14 @@ public function execute(): void 'base_href' => Utils::$context['base_url'] . ';searchip=' . Utils::$context['ip'], 'default_sort_col' => 'date', 'get_items' => array( - 'function' => 'list_getIPMessages', + 'function' => __CLASS__ . '::list_getIPMessages', 'params' => array( 'm.poster_ip >= ' . $ip_string[0] . ' and m.poster_ip <= ' . $ip_string[1], $fields, ), ), 'get_count' => array( - 'function' => 'list_getIPMessageCount', + 'function' => __CLASS__ . '::list_getIPMessageCount', 'params' => array( 'm.poster_ip >= ' . $ip_string[0] . ' and m.poster_ip <= ' . $ip_string[1], $fields, diff --git a/Sources/PackageManager/SubsPackage.php b/Sources/PackageManager/SubsPackage.php index 06ebbf576c..2985d0ade7 100644 --- a/Sources/PackageManager/SubsPackage.php +++ b/Sources/PackageManager/SubsPackage.php @@ -565,7 +565,7 @@ public static function create_chmod_control($chmodFiles = array(), $chmodOptions 'id' => 'restore_file_permissions', 'title' => Lang::$txt['package_restore_permissions'], 'get_items' => array( - 'function' => array(__CLASS__, 'list_restoreFiles'), + 'function' => __CLASS__ . '::list_restoreFiles', 'params' => array( !empty($_POST['restore_perms']), ),