diff options
author | Sam Tuke <samtuke@owncloud.com> | 2012-07-03 17:42:51 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2012-07-03 17:42:51 +0100 |
commit | a775deaf22ee803ae2ff0dbe1068229d9c819232 (patch) | |
tree | f7a7f5ee4d57935710903ab649f53ee948108fad /apps/files_versions/appinfo/app.php | |
parent | ca2b1f78630257ff4a2beadb5e25d628e5195bb0 (diff) | |
download | nextcloud-server-a775deaf22ee803ae2ff0dbe1068229d9c819232.tar.gz nextcloud-server-a775deaf22ee803ae2ff0dbe1068229d9c819232.zip |
Moved hooks and versions.php into new lib directory
Part-ported filesystem operations to OC_FilesystemView
Refactored Storage class to depend on an OC_FsV object and have fewer static classes
Diffstat (limited to 'apps/files_versions/appinfo/app.php')
-rw-r--r-- | apps/files_versions/appinfo/app.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_versions/appinfo/app.php b/apps/files_versions/appinfo/app.php index 105c5a102cb..dba612e4b79 100644 --- a/apps/files_versions/appinfo/app.php +++ b/apps/files_versions/appinfo/app.php @@ -1,6 +1,8 @@ <?php -require_once('files_versions/versions.php'); +//require_once('files_versions/versions.php'); +OC::$CLASSPATH['OCA_Versions\Storage'] = 'apps/files_versions/lib/versions.php'; +OC::$CLASSPATH['OCA_Versions\Hooks'] = 'apps/files_versions/lib/hooks.php'; OCP\App::registerAdmin('files_versions', 'settings'); OCP\App::registerPersonal('files_versions','settings-personal'); @@ -8,7 +10,7 @@ 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"); +OCP\Util::connectHook('OC_Filesystem', 'post_write', "OCA_Versions\Hooks", "write_hook"); // Listen to delete and rename signals OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Versions\Storage", "removeVersions"); OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA_Versions\Storage", "renameVersions");
\ No newline at end of file |