mirror of
https://github.com/standardebooks/web.git
synced 2025-07-23 07:44:49 -04:00
Convert some constants to enums
This commit is contained in:
parent
06425d3dd6
commit
ee7c8343dd
52 changed files with 282 additions and 268 deletions
|
@ -3,11 +3,11 @@ use function Safe\session_unset;
|
|||
|
||||
session_start();
|
||||
|
||||
$saved = HttpInput::Bool(SESSION, 'artwork-saved') ?? false;
|
||||
$saved = HttpInput::Bool(HttpVariableSource::Session, 'artwork-saved') ?? false;
|
||||
$exception = $_SESSION['exception'] ?? null;
|
||||
|
||||
try{
|
||||
$artwork = Artwork::GetByUrl(HttpInput::Str(GET, 'artist-url-name'), HttpInput::Str(GET, 'artwork-url-name'));
|
||||
$artwork = Artwork::GetByUrl(HttpInput::Str(HttpVariableSource::Get, 'artist-url-name'), HttpInput::Str(HttpVariableSource::Get, 'artwork-url-name'));
|
||||
$isReviewerView = $GLOBALS['User']->Benefits->CanReviewArtwork ?? false;
|
||||
$isAdminView = $GLOBALS['User']->Benefits->CanReviewOwnArtwork ?? false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue