Added Data suffix where applicable.

This commit is contained in:
flash 2025-01-29 23:36:35 +00:00
parent 6c7568e261
commit d462ee0594
44 changed files with 133 additions and 133 deletions
public-legacy/manage
changelog
users

View file

@ -3,7 +3,7 @@ namespace Misuzu;
use DateTimeInterface;
use RuntimeException;
use Misuzu\Changelog\Changelog;
use Misuzu\Changelog\ChangelogData;
use Carbon\CarbonImmutable;
use Index\{XArray,XDateTime};
@ -14,8 +14,8 @@ if(!$msz->authInfo->getPerms('global')->check(Perm::G_CL_CHANGES_MANAGE))
Template::throwError(403);
$changeActions = [];
foreach(Changelog::ACTIONS as $action)
$changeActions[$action] = Changelog::actionText($action);
foreach(ChangelogData::ACTIONS as $action)
$changeActions[$action] = ChangelogData::actionText($action);
$changeId = (string)filter_input(INPUT_GET, 'c', FILTER_SANITIZE_NUMBER_INT);
$changeInfo = null;

View file

@ -1,7 +1,7 @@
<?php
namespace Misuzu;
use Misuzu\Users\Roles;
use Misuzu\Users\RolesData;
if(!isset($msz) || !($msz instanceof \Misuzu\MisuzuContext))
die('Script must be called through the Misuzu route dispatcher.');
@ -18,7 +18,7 @@ $userInfos = $msz->usersCtx->users->getUsers(pagination: $pagination, orderBy: '
$roleInfos = [];
foreach($userInfos as $userInfo) {
$displayRoleId = $userInfo->displayRoleId ?? Roles::DEFAULT_ROLE;
$displayRoleId = $userInfo->displayRoleId ?? RolesData::DEFAULT_ROLE;
if(array_key_exists($displayRoleId, $roleInfos))
$roleInfo = $roleInfos[$displayRoleId];
else