From 5289fff28c8e9c794b04dab4ea4c278dc4e50226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 29 Mar 2009 20:57:36 +0200 Subject: [PATCH] application: Show a more helpful message when viewing a deleted entry --- include/application.php | 9 ++++++++- tables/create_tables | 0 2 files changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 tables/create_tables diff --git a/include/application.php b/include/application.php index 9fe2ab3..b93562e 100644 --- a/include/application.php +++ b/include/application.php @@ -742,7 +742,14 @@ class Application { { /* is this user supposed to view this version? */ if(!$_SESSION['current']->canViewApplication($this)) - objectManager::error_exit("You do not have permission to view this entry"); + { + $sError = 'You do not have permission to view this entry'; + + if($this->objectGetState() == 'deleted') + $sError = 'This entry has been deleted; it\'s contents may have been moved to another entry'; + + objectManager::error_exit($sError); + } // cat display $oCategory = new Category($this->iCatId); diff --git a/tables/create_tables b/tables/create_tables old mode 100644 new mode 100755