summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-02-27 18:01:43 +0100
committerFrank Karlitschek <karlitschek@kde.org>2012-02-27 18:01:43 +0100
commit5943af17e7deaa88b9c529b337557ef6aa0f4031 (patch)
tree271c376130dc3d85569fcd9c93f94784a511f9a9 /lib/helper.php
parent63a088c2b1ee77c4d9511df8c7ee77b1d88bb800 (diff)
downloadnextcloud-server-5943af17e7deaa88b9c529b337557ef6aa0f4031.tar.gz
nextcloud-server-5943af17e7deaa88b9c529b337557ef6aa0f4031.zip
spaces -> tabs
Thanks to Jakob for reminding me
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 525a096947d..1ea0a55f469 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -83,24 +83,24 @@ class OC_Helper {
* Returns the path to the image.
*/
public static function imagePath( $app, $image ){
- // Read the selected theme from the config file
- $theme=OC_Config::getValue( "theme" );
+ // Read the selected theme from the config file
+ $theme=OC_Config::getValue( "theme" );
- // Check if the app is in the app folder
- if( file_exists( OC::$SERVERROOT."/themes/$theme/apps/$app/img/$image" )){
- return OC::$WEBROOT."/themes/$theme/apps/$app/img/$image";
- }elseif( file_exists( OC::$APPSROOT."/apps/$app/img/$image" )){
- return OC::$APPSWEBROOT."/apps/$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" )){
- 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{
- return OC::$WEBROOT."/core/img/$image";
- }
- }
+ // Check if the app is in the app folder
+ if( file_exists( OC::$SERVERROOT."/themes/$theme/apps/$app/img/$image" )){
+ return OC::$WEBROOT."/themes/$theme/apps/$app/img/$image";
+ }elseif( file_exists( OC::$APPSROOT."/apps/$app/img/$image" )){
+ return OC::$APPSWEBROOT."/apps/$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" )){
+ 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{
+ return OC::$WEBROOT."/core/img/$image";
+ }
+ }
/**
* @brief get path to icon of file type