move archive library to core so we can properly depend on it

This commit is contained in:
Robin Appelman 2012-05-02 23:48:23 +02:00
parent 0b51c53443
commit e5ef3e1340
7 changed files with 2 additions and 6 deletions

View File

@ -6,12 +6,6 @@
* See the COPYING-README file.
*/
OC::$CLASSPATH['OC_Archive'] = 'apps/files_archive/lib/archive.php';
OC::$CLASSPATH['Archive_Tar'] = '3rdparty/Archive/Tar.php';
foreach(array('ZIP','TAR') as $type){
OC::$CLASSPATH['OC_Archive_'.$type] = 'apps/files_archive/lib/'.strtolower($type).'.php';
}
OC::$CLASSPATH['OC_Filestorage_Archive']='apps/files_archive/lib/storage.php';
OC_Hook::connect('OC_Filesystem','get_mountpoint','OC_Filestorage_Archive','autoMount');

View File

@ -6,6 +6,8 @@
* See the COPYING-README file.
*/
require_once '3rdparty/Archive/Tar.php';
class OC_Archive_TAR extends OC_Archive{
const PLAIN=0;
const GZIP=1;