From 956bce12b517b5978cd9fe4be24ff8efccd79aae Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Mon, 1 Jul 2013 21:48:49 +0300 Subject: [PATCH] Use classpath instead of require --- appinfo/app.php | 2 ++ index.php | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) 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);