diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-08-22 20:39:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-08-22 20:39:43 +0000 |
commit | 6a4e6df36fe43b45c78a160fdf58df8d78ae5f02 (patch) | |
tree | bc214693b7f2b0d75feb593766b5d3b825ef3cc7 /includes | |
parent | 22a98528b741042a06d1227182bd4162cc2e8c45 (diff) | |
download | brdo-6a4e6df36fe43b45c78a160fdf58df8d78ae5f02.tar.gz brdo-6a4e6df36fe43b45c78a160fdf58df8d78ae5f02.tar.bz2 |
- Patch #17592 by killes: improved access denied messages.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 12 |
1 files changed, 1 insertions, 11 deletions
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); } @@ -570,16 +570,6 @@ function object2array($object) { */ /** - * 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. */ function message_na() { |