Bladeren bron

Fixed small code style issues

tags/v8.0.0alpha1
Vincent Petry 9 jaren geleden
bovenliggende
commit
207d77e5cd

+ 3
- 3
apps/files/appinfo/application.php Bestand weergeven

@@ -31,9 +31,9 @@ class Application extends App {
);
});

/**
* Core
*/
/**
* Core
*/
$container->registerService('L10N', function(IContainer $c) {
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
});

+ 5
- 0
apps/files/controller/apicontroller.php Bestand weergeven

@@ -19,6 +19,11 @@ use OCA\Files\Service\TagService;

class ApiController extends Controller {

/**
* @var TagService $tagService
*/
private $tagService;

public function __construct($appName, IRequest $request, TagService $tagService){
parent::__construct($appName, $request);
$this->tagService = $tagService;

+ 5
- 5
apps/files/index.php Bestand weergeven

@@ -90,11 +90,11 @@ function sortNavigationItems($item1, $item2) {

\OCA\Files\App::getNavigationManager()->add(
array(
"id" => 'favorites',
"appname" => 'files',
"script" => 'simplelist.php',
"order" => 50,
"name" => $l->t('Favorites')
'id' => 'favorites',
'appname' => 'files',
'script' => 'simplelist.php',
'order' => 50,
'name' => $l->t('Favorites')
)
);


+ 2
- 2
apps/files/js/tagsplugin.js Bestand weergeven

@@ -12,7 +12,7 @@

(function(OCA) {

var TEMPLATE_FAVORITE_ACTION =
var TEMPLATE_FAVORITE_ACTION =
'<a href="#" ' +
'class="action action-favorite {{#isFavorite}}permanent{{/isFavorite}}">' +
'<img class="svg" alt="{{altText}}" src="{{imgFile}}" />' +
@@ -30,7 +30,7 @@

/**
* Render the star icon with the given state
*
*
* @param {boolean} state true if starred, false otherwise
* @return {Object} jQuery object
*/

+ 1
- 2
apps/files/simplelist.php Bestand weergeven

@@ -21,8 +21,7 @@
*
*/

// Check if we are a user
OCP\User::checkLoggedIn();
// TODO: move to handlebars

// renders the controls and table headers template
$tmpl = new OCP\Template('files', 'simplelist', '');

Laden…
Annuleren
Opslaan