summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-03 21:13:30 +0000
committerBrice Maron <brice@bmaron.net>2012-06-06 20:24:15 +0000
commitcc494259d3e1fc60e82452dfdc1d0e0e0cd848e9 (patch)
tree5eb8dba209fc57625793487745d42515242fe1ee /lib/helper.php
parent6832aec60fcdcc7e8b6433d8f9103cdf347f32ed (diff)
downloadnextcloud-server-cc494259d3e1fc60e82452dfdc1d0e0e0cd848e9.tar.gz
nextcloud-server-cc494259d3e1fc60e82452dfdc1d0e0e0cd848e9.zip
Unit path and webpath, correct some more
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 72ae98222d9..550bf9771e4 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -48,7 +48,7 @@ class OC_Helper {
$urlLinkTo = OC::$WEBROOT . '/?app=' . $app;
$urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):'';
}else{
- $urlLinkTo = OC::$APPSWEBROOT . '/apps/' . $app . $file;
+ $urlLinkTo = OC_App::getAppWebPath($app) . $file;
}
}
else{
@@ -151,7 +151,7 @@ class OC_Helper {
if( file_exists( OC::$SERVERROOT."/themes/$theme/apps/$app/img/$image" )){
return OC::$WEBROOT."/themes/$theme/apps/$app/img/$image";
}elseif( file_exists(OC_App::getAppPath($app)."/img/$image" )){
- return OC::$APPSWEBROOT."/apps/$app/img/$image";
+ return OC_App::getAppWebPath($app)."/img/$image";
}elseif( !empty( $app ) and file_exists( OC::$SERVERROOT."/themes/$theme/$app/img/$image" )){
return OC::$WEBROOT."/themes/$theme/$app/img/$image";
}elseif( !empty( $app ) and file_exists( OC::$SERVERROOT."/$app/img/$image" )){