diff --git a/include/application.php b/include/application.php index 386fd74..2e5291d 100644 --- a/include/application.php +++ b/include/application.php @@ -692,7 +692,7 @@ class Application { { /* is this user supposed to view this version? */ if(!$_SESSION['current']->canViewApplication($this)) - util_show_error_page_and_exit("Something went wrong with the application or version id"); + objectManager::error_exit("You do not have permission to view this entry"); // cat display $oCategory = new Category($this->iCatId); diff --git a/include/objectManager.php b/include/objectManager.php index c9ae56f..9350891 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -147,6 +147,13 @@ class ObjectManager return TRUE; } + public static function error_exit($shMessage) + { + echo '

'.$shMessage.'