Fixed small code style issues
This commit is contained in:
parent
976baed5f9
commit
207d77e5cd
|
@ -31,9 +31,9 @@ class Application extends App {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Core
|
* Core
|
||||||
*/
|
*/
|
||||||
$container->registerService('L10N', function(IContainer $c) {
|
$container->registerService('L10N', function(IContainer $c) {
|
||||||
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
|
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,6 +19,11 @@ use OCA\Files\Service\TagService;
|
||||||
|
|
||||||
class ApiController extends Controller {
|
class ApiController extends Controller {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var TagService $tagService
|
||||||
|
*/
|
||||||
|
private $tagService;
|
||||||
|
|
||||||
public function __construct($appName, IRequest $request, TagService $tagService){
|
public function __construct($appName, IRequest $request, TagService $tagService){
|
||||||
parent::__construct($appName, $request);
|
parent::__construct($appName, $request);
|
||||||
$this->tagService = $tagService;
|
$this->tagService = $tagService;
|
||||||
|
|
|
@ -90,11 +90,11 @@ function sortNavigationItems($item1, $item2) {
|
||||||
|
|
||||||
\OCA\Files\App::getNavigationManager()->add(
|
\OCA\Files\App::getNavigationManager()->add(
|
||||||
array(
|
array(
|
||||||
"id" => 'favorites',
|
'id' => 'favorites',
|
||||||
"appname" => 'files',
|
'appname' => 'files',
|
||||||
"script" => 'simplelist.php',
|
'script' => 'simplelist.php',
|
||||||
"order" => 50,
|
'order' => 50,
|
||||||
"name" => $l->t('Favorites')
|
'name' => $l->t('Favorites')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Check if we are a user
|
// TODO: move to handlebars
|
||||||
OCP\User::checkLoggedIn();
|
|
||||||
|
|
||||||
// renders the controls and table headers template
|
// renders the controls and table headers template
|
||||||
$tmpl = new OCP\Template('files', 'simplelist', '');
|
$tmpl = new OCP\Template('files', 'simplelist', '');
|
||||||
|
|
Loading…
Reference in New Issue