<?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' );
+}
?>
<?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>