diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-26 21:18:13 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-26 21:18:13 +0200 |
commit | d6d38ac3fafa2c73e3da09a060ad1ae20949a26c (patch) | |
tree | 0a7182920a7e0ee0164557e02bca74974ebc2a7c /apps/files_imageviewer | |
parent | 633d7826c9577ff687eae33d208f9f5faa9aa1b6 (diff) | |
download | nextcloud-server-d6d38ac3fafa2c73e3da09a060ad1ae20949a26c.tar.gz nextcloud-server-d6d38ac3fafa2c73e3da09a060ad1ae20949a26c.zip |
only load image viewer when in the file browser
Diffstat (limited to 'apps/files_imageviewer')
-rw-r--r-- | apps/files_imageviewer/appinfo/app.php | 6 | ||||
-rw-r--r-- | apps/files_imageviewer/appinfo/info.xml | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_imageviewer/appinfo/app.php b/apps/files_imageviewer/appinfo/app.php index bc0059b8b66..50a7253e01b 100644 --- a/apps/files_imageviewer/appinfo/app.php +++ b/apps/files_imageviewer/appinfo/app.php @@ -1,6 +1,8 @@ <?php -OC_UTIL::addScript( 'files_imageviewer', 'lightbox' ); -OC_UTIL::addStyle( 'files_imageviewer', 'lightbox' ); +if(OC_APP::getCurrentApp()=='files'){ + OC_UTIL::addScript( 'files_imageviewer', 'lightbox' ); + OC_UTIL::addStyle( 'files_imageviewer', 'lightbox' ); +} ?> diff --git a/apps/files_imageviewer/appinfo/info.xml b/apps/files_imageviewer/appinfo/info.xml index f658409be79..f3b5a67960e 100644 --- a/apps/files_imageviewer/appinfo/info.xml +++ b/apps/files_imageviewer/appinfo/info.xml @@ -1,7 +1,7 @@ <?xml version="1.0"?> <info> - <id>files_imageview</id> - <name>Imageviewer</name> + <id>files_imageviewer</id> + <name>Image Viewer</name> <description>Simple image viewer for owncloud</description> <version>1.0</version> <licence>AGPL</licence> |