Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes calls to several callbacks for ItemList #7859

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/Moderation/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/Moderation/WatchedUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/TrackIP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion Sources/PackageManager/SubsPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
),
Expand Down
Loading