summaryrefslogtreecommitdiff
path: root/modules/image
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-12-29 15:32:28 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-12-29 15:32:28 -0500
commit257fac8454924bb2f09aaee6a112f9f86f7520f1 (patch)
tree7c0bc3b7730b203fba3c1ef0ce491cf5b2525315 /modules/image
parent987892b79edcb3b2325fe551f261cd627c1f0e99 (diff)
downloadbrdo-257fac8454924bb2f09aaee6a112f9f86f7520f1.tar.gz
brdo-257fac8454924bb2f09aaee6a112f9f86f7520f1.tar.bz2
Issue #1426122 by deletedaccount, Alan D., andypost, maximpodorov: Some callbacks return junk when calling drupal_not_found(); replace with return MENU_NOT_FOUND instead.
Diffstat (limited to 'modules/image')
-rw-r--r--modules/image/image.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image/image.module b/modules/image/image.module
index 445e8d0ea..c6a23f25a 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -835,7 +835,7 @@ function image_style_deliver($style, $scheme) {
else {
$headers = module_invoke_all('file_download', $image_uri);
if (in_array(-1, $headers) || empty($headers)) {
- return drupal_access_denied();
+ return MENU_ACCESS_DENIED;
}
if (count($headers)) {
foreach ($headers as $name => $value) {