X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/blobdiff_plain/a17a8d5e2641a8d5b6e0a87dcc5d99f56648a295..c8317e4a9402cf848a54ea7837c3a93572306f12:/src/index.php diff --git a/src/index.php b/src/index.php index 9a9f7d7..0bae2b6 100644 --- a/src/index.php +++ b/src/index.php @@ -51,7 +51,7 @@ $strError = ""; PageBlue(_c("error-reporter:Report an error"), "mod_error-reporter"); -if(!$cfgErrors->userHasAccess()) { +if(!erConfig::userHasAccess()) { printf("
%s
\n", ER_ERROR_ACCESS_DENIED); _PageBlue(); exit(); @@ -75,7 +75,7 @@ if($getAction == "delete" and isset($getUid)) { _c("error-reporter:The specified error report does not exist!")); Option(_("Back"), null, "href='".$_SERVER["PHP_SELF"]."'", "back"); } else { - if($cfgErrors->userIsAdmin() or $doc->userIsOwner($getUid)) { + if(erConfig::userIsAdmin() or $doc->userIsOwner($getUid)) { echo sprintf("