]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove references to /apps/ and correct inclusion of settings
authorBrice Maron <brice@bmaron.net>
Fri, 22 Jun 2012 22:05:39 +0000 (22:05 +0000)
committerBrice Maron <brice@bmaron.net>
Fri, 22 Jun 2012 22:05:39 +0000 (22:05 +0000)
apps/files_versions/appinfo/app.php
apps/gallery/appinfo/app.php
apps/gallery/index.php
apps/media/appinfo/app.php
lib/app.php

index ef2f54dd3f9b5e04cb48f105f93822a99b1a0f20..bd06dc0ced3c12b05a7e286039ffaa87d126e7cf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-require_once('apps/files_versions/versions.php');
+require_once('files_versions/versions.php');
 
 OCP\App::registerAdmin('files_versions', 'settings');
 OCP\App::registerPersonal('files_versions','settings-personal');
@@ -8,4 +8,4 @@ OCP\App::registerPersonal('files_versions','settings-personal');
 OCP\Util::addscript('files_versions', 'versions');
 
 // Listen to write signals
-OCP\Util::connectHook('OC_Filesystem', 'post_write', "OCA_Versions\Storage", "write_hook");
\ No newline at end of file
+OCP\Util::connectHook('OC_Filesystem', 'post_write', "OCA_Versions\Storage", "write_hook");
index e3a8dbd588b5875ca2ee3afd44858e959c01f97f..df3b68ef7368e2cfc9e24734f0c2abd53be5e4c4 100644 (file)
 * 
 */
 
-OC::$CLASSPATH['OC_Gallery_Album'] = 'apps/gallery/lib/album.php';
-OC::$CLASSPATH['OC_Gallery_Photo'] = 'apps/gallery/lib/photo.php';
-OC::$CLASSPATH['OC_Gallery_Scanner'] = 'apps/gallery/lib/scanner.php';
-OC::$CLASSPATH['OC_Gallery_Sharing'] = 'apps/gallery/lib/sharing.php';
-OC::$CLASSPATH['OC_Gallery_Hooks_Handlers'] = 'apps/gallery/lib/hooks_handlers.php';
-OC::$CLASSPATH['Pictures_Managers'] = 'apps/gallery/lib/managers.php';
-OC::$CLASSPATH['Pictures_Tiles'] = 'apps/gallery/lib/tiles.php';
+OC::$CLASSPATH['OC_Gallery_Album'] = 'gallery/lib/album.php';
+OC::$CLASSPATH['OC_Gallery_Photo'] = 'gallery/lib/photo.php';
+OC::$CLASSPATH['OC_Gallery_Scanner'] = 'gallery/lib/scanner.php';
+OC::$CLASSPATH['OC_Gallery_Sharing'] = 'gallery/lib/sharing.php';
+OC::$CLASSPATH['OC_Gallery_Hooks_Handlers'] = 'gallery/lib/hooks_handlers.php';
+OC::$CLASSPATH['Pictures_Managers'] = 'gallery/lib/managers.php';
+OC::$CLASSPATH['Pictures_Tiles'] = 'gallery/lib/tiles.php';
 
 $l = OC_L10N::get('gallery');
 
@@ -52,4 +52,4 @@ class OC_GallerySearchProvider extends OC_Search_Provider{
 
 //OC_Search::registerProvider('OC_GallerySearchProvider');
 
-require_once('apps/gallery/lib/hooks_handlers.php');
+require_once('gallery/lib/hooks_handlers.php');
index c08305bff9eb8ffcb637b2866fd2aa87fc936761..52a5b81a23a07e8f7e1f230fe622381c68f40704 100644 (file)
@@ -31,7 +31,7 @@ OCP\Util::addStyle('files', 'files');
 OCP\Util::addStyle('gallery', 'styles');
 OCP\Util::addScript('gallery', 'pictures');
 
-include('apps/gallery/lib/tiles.php');
+include('gallery/lib/tiles.php');
 
 $root = !empty($_GET['root']) ? $_GET['root'] : '/';
 $images = \OC_FileCache::searchByMime('image', null, '/'.\OCP\USER::getUser().'/files'.$root);
index 869bc3440208f446d07d759aece82ccbbeb5145d..c5bfc3465428b21c064f7ab52bbd1137454e86f0 100644 (file)
@@ -22,9 +22,9 @@
 
 $l=OC_L10N::get('media');
 
-require_once('apps/media/lib_media.php');
-require_once('apps/media/lib_collection.php');
-require_once('apps/media/lib_scanner.php');
+require_once('media/lib_media.php');
+require_once('media/lib_collection.php');
+require_once('media/lib_scanner.php');
 
 OCP\Util::addscript('media','loader');
 OCP\App::registerPersonal('media','settings');
index 486704a2229454548009fb5a8152de7fd7ba6fac..84d17957def88132fae3c309f468866b759a04df 100755 (executable)
@@ -492,21 +492,21 @@ class OC_App{
         * register a settings form to be shown
         */
        public static function registerSettings($app,$page){
-               self::$settingsForms[]='apps/'.$app.'/'.$page.'.php';
+               self::$settingsForms[]= $app.'/'.$page.'.php';
        }
 
        /**
         * register an admin form to be shown
         */
        public static function registerAdmin($app,$page){
-               self::$adminForms[]='apps/'.$app.'/'.$page.'.php';
+               self::$adminForms[]= $app.'/'.$page.'.php';
        }
 
        /**
         * register a personal form to be shown
         */
        public static function registerPersonal($app,$page){
-               self::$personalForms[]='apps/'.$app.'/'.$page.'.php';
+               self::$personalForms[]= $app.'/'.$page.'.php';
        }
 
        /**