From 6a4e6df36fe43b45c78a160fdf58df8d78ae5f02 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 22 Aug 2005 20:39:43 +0000 Subject: - Patch #17592 by killes: improved access denied messages. --- includes/common.inc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 33519b450..e5e6d0190 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -301,7 +301,7 @@ function drupal_access_denied() { if (empty($return)) { drupal_set_title(t('Access denied')); - $return = message_access(); + $return = t('You are not authorized to access this page.'); } print theme('page', $return); } @@ -569,16 +569,6 @@ function object2array($object) { * Frequently used messages. */ -/** - * Return a string with an "access denied" message. - * - * Always consider whether to use drupal_access_denied() instead to return a - * proper (and customizable) 403 error. - */ -function message_access() { - return t('You are not authorized to access this page.'); -} - /** * Return a string with a "not applicable" message. */ -- cgit v1.2.3