Added Data suffix where applicable.
This commit is contained in:
parent
6c7568e261
commit
d462ee0594
44 changed files with 133 additions and 133 deletions
public-legacy/manage
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue