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

remotes/origin/stable4
Robin Appelman 13 years ago
parent 0b51c53443
commit e5ef3e1340
  1. 6
      apps/files_archive/appinfo/app.php
  2. 0
      lib/archive.php
  3. 2
      lib/archive/tar.php
  4. 0
      lib/archive/zip.php
  5. 0
      tests/lib/archive.php
  6. 0
      tests/lib/archive/tar.php
  7. 0
      tests/lib/archive/zip.php

@ -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');

@ -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;
Loading…
Cancel
Save