Fixed casing oversight.
This commit is contained in:
parent
1550a5da57
commit
1f16de2239
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ namespace Misuzu;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use Index\Colour\Colour;
|
use Index\Colour\Colour;
|
||||||
use Index\Colour\ColourRGB;
|
use Index\Colour\ColourRgb;
|
||||||
use Misuzu\Perm;
|
use Misuzu\Perm;
|
||||||
|
|
||||||
$authInfo = $msz->getAuthInfo();
|
$authInfo = $msz->getAuthInfo();
|
||||||
|
@ -86,7 +86,7 @@ while($_SERVER['REQUEST_METHOD'] === 'POST' && CSRF::validateRequest()) {
|
||||||
|
|
||||||
$roleColour = $colourInherit
|
$roleColour = $colourInherit
|
||||||
? Colour::none()
|
? Colour::none()
|
||||||
: new ColourRGB($colourRed, $colourGreen, $colourBlue);
|
: new ColourRgb($colourRed, $colourGreen, $colourBlue);
|
||||||
|
|
||||||
if(mb_strlen($roleDesc) > 1000) {
|
if(mb_strlen($roleDesc) > 1000) {
|
||||||
echo 'Description may not be longer than 1000 characters.';
|
echo 'Description may not be longer than 1000 characters.';
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Misuzu\SiteInfo;
|
||||||
use Misuzu\Users\Assets\UserAvatarAsset;
|
use Misuzu\Users\Assets\UserAvatarAsset;
|
||||||
use Aiwass\Server\{RpcActionHandler,RpcQuery};
|
use Aiwass\Server\{RpcActionHandler,RpcQuery};
|
||||||
use Index\XArray;
|
use Index\XArray;
|
||||||
use Index\Colour\{Colour,ColourRGB};
|
use Index\Colour\{Colour,ColourRgb};
|
||||||
use Index\Urls\UrlRegistry;
|
use Index\Urls\UrlRegistry;
|
||||||
|
|
||||||
final class UsersRpcActions extends RpcActionHandler {
|
final class UsersRpcActions extends RpcActionHandler {
|
||||||
|
@ -35,7 +35,7 @@ final class UsersRpcActions extends RpcActionHandler {
|
||||||
} else {
|
} else {
|
||||||
// Index doesn't have a proper toRawRGB func???
|
// Index doesn't have a proper toRawRGB func???
|
||||||
$colourRaw = Colour::toMisuzu($colour) & 0xFFFFFF;
|
$colourRaw = Colour::toMisuzu($colour) & 0xFFFFFF;
|
||||||
$colourCSS = (string)ColourRGB::convert($colour);
|
$colourCSS = (string)ColourRgb::convert($colour);
|
||||||
}
|
}
|
||||||
|
|
||||||
$baseUrl = $this->siteInfo->getURL();
|
$baseUrl = $this->siteInfo->getURL();
|
||||||
|
|
Loading…
Reference in a new issue