summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-02-28 16:14:12 +0100
committerFrank Karlitschek <karlitschek@kde.org>2012-02-28 16:14:12 +0100
commit5e9d268c21ab96e382a9634dcb1e66cb5b6637ff (patch)
tree83a32a819d6f29db5b9709a9cbb298d7080e32e4 /lib/helper.php
parentde642697bb6c8bd6d04ca2c946bae2fe63418e23 (diff)
downloadnextcloud-server-5e9d268c21ab96e382a9634dcb1e66cb5b6637ff.tar.gz
nextcloud-server-5e9d268c21ab96e382a9634dcb1e66cb5b6637ff.zip
never try to load an non existing template,css,img.
do propper checking, error reporting and motivate the developerto fix it ;-)
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index fc0b8867703..5b1efd749ae 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -98,8 +98,11 @@ class OC_Helper {
return OC::$WEBROOT."/$app/img/$image";
}elseif( file_exists( OC::$SERVERROOT."/themes/$theme/core/img/$image" )){
return OC::$WEBROOT."/themes/$theme/core/img/$image";
- }else{
+ }elseif( file_exists( OC::$SERVERROOT."/core/img/$image" )){
return OC::$WEBROOT."/core/img/$image";
+ }else{
+ echo('image not found: image:'.$image.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);
+ die();
}
}