diff --git a/appinfo/app.php b/appinfo/app.php index 5b36ebf1..7311363f 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -32,3 +32,5 @@ OCP\App::addNavigationEntry(array( 'icon' => OCP\Util::imagePath('office', 'office.png'), 'name' => 'Office') ); + +OC::$CLASSPATH['OCA\Office\Storage'] = 'office/lib/office.php'; \ No newline at end of file diff --git a/index.php b/index.php index 64bf38a1..109e0197 100755 --- a/index.php +++ b/index.php @@ -21,16 +21,12 @@ * */ -require_once('lib/office.php'); - - OCP\User::checkLoggedIn(); OCP\JSON::checkAppEnabled('office'); OCP\App::setActiveNavigationEntry( 'office_index' ); OCP\Util::addStyle( 'office', 'style' ); - $list=\OCA\Office\Storage::getDocuments(); $tmpl = new OCP\Template('office', 'documents', 'user'); $tmpl->assign('list', $list);