X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/blobdiff_plain/a17a8d5e2641a8d5b6e0a87dcc5d99f56648a295..65d6cdfbaae66c99062406937c242ef0612d3a3b:/src/detail.php diff --git a/src/detail.php b/src/detail.php index a0af8ac..1dfbcf3 100644 --- a/src/detail.php +++ b/src/detail.php @@ -34,7 +34,7 @@ db_user("errorreporter"); PageBlue(_c("error-reporter:Change an error report"), "mod_error-reporter"); -if(!$cfgErrors->userHasAccess()) { +if(!erConfig::userHasAccess()) { printf("
%s
\n", ER_ERROR_ACCESS_DENIED); _PageBlue(); die(); @@ -55,7 +55,7 @@ if(!is_object($doc->getErrorReportByID($getUid))) { } // Only admins or owners can view this page -if(!($cfgErrors->userIsAdmin() or $doc->userIsOwner($getUid))) { +if(!(erConfig::userIsAdmin() or $doc->userIsOwner($getUid))) { echo sprintf("%s", _c("error-reporter:You are not ". "allowed to edit this report.")); _PageBlue(); @@ -69,7 +69,7 @@ $strOldComment = $er->getComment(); // Probably we have to update an error report if($getAction == "update" and $postSubmit == _("Change")) { - if($cfgErrors->userIsAdmin()) { + if(erConfig::userIsAdmin()) { $postComment = stripslashes(@$_POST["comment"]); $postCommentOld = stripslashes(@$_POST["comment_old"]); } @@ -80,7 +80,7 @@ if($getAction == "update" and $postSubmit == _("Change")) $er->setVisibility(isset($_POST["hidden"]) ? true : false); // Do we have to change the comment and his owner? - if($cfgErrors->userIsAdmin()) { + if(erConfig::userIsAdmin()) { if(@$_POST["comment_old"] != @$_POST["comment"]) { $er->setComment(stripslashes(@$_POST["comment"]), $_SESSION["act"]); } @@ -116,7 +116,7 @@ echo sprintf("