Browse Source

Use classpath instead of require

tags/1.1.22
Victor Dubiniuk 6 years ago
parent
commit
956bce12b5
2 changed files with 2 additions and 4 deletions
  1. 2
    0
      appinfo/app.php
  2. 0
    4
      index.php

+ 2
- 0
appinfo/app.php View File

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

+ 0
- 4
index.php View File

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

Loading…
Cancel
Save