Skip to content

Commit

Permalink
Fixes calls to several callbacks for ItemList
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 9, 2023
1 parent 76dfb27 commit 68cf574
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
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

0 comments on commit 68cf574

Please sign in to comment.