diff --git a/drawio/appinfo/app.php b/drawio/appinfo/app.php index e9a211b..c47dd18 100644 --- a/drawio/appinfo/app.php +++ b/drawio/appinfo/app.php @@ -11,6 +11,4 @@ namespace OCA\Drawio\AppInfo; -use OCP\App; - $app = new Application(); diff --git a/drawio/appinfo/info.xml b/drawio/appinfo/info.xml index 0eefab5..49e8151 100644 --- a/drawio/appinfo/info.xml +++ b/drawio/appinfo/info.xml @@ -1,26 +1,26 @@ - + drawio Draw.io Draw.io integration app - - AGPL + Integrates Draw.io with Nextcloud + 0.9.8 + agpl Paweł Rojek - 0.9.7 Drawio - + files integration tools https://github.com/pawelrojek/nextcloud-drawio/ - https://raw.githubusercontent.com/pawelrojek/nextcloud-drawio/master/screenshots/drawio_integration.png https://github.com/pawelrojek/nextcloud-drawio/issues https://github.com/pawelrojek/nextcloud-drawio.git + https://raw.githubusercontent.com/pawelrojek/nextcloud-drawio/master/screenshots/drawio_integration.png - - + OCA\Drawio\AdminSettings diff --git a/drawio/controller/editorcontroller.php b/drawio/controller/editorcontroller.php index 85ca4f7..1697a7f 100644 --- a/drawio/controller/editorcontroller.php +++ b/drawio/controller/editorcontroller.php @@ -11,7 +11,6 @@ namespace OCA\Drawio\Controller; -use OCP\App; use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\ContentSecurityPolicy; use OCP\AppFramework\Controller; @@ -94,7 +93,7 @@ public function index($fileId) { $lang = $this->config->GetLang(); $lang = trim(strtolower($lang)); - if ($lang=="auto") + if ("auto" === $lang) { $lang = \OC::$server->getL10NFactory("")->get("")->getLanguageCode(); } diff --git a/drawio/l10n/it.json b/drawio/l10n/it.json index ca2e66a..601f79a 100644 --- a/drawio/l10n/it.json +++ b/drawio/l10n/it.json @@ -10,7 +10,7 @@ "Yes" : "Si", "No" : "No", "Associate XML files with Draw.io?" : "Associa i file XML a Draw.io?", - "Please note: when you disable the XML association, you need to manually register the MIME type application/x-drawio for the extension \".drawio\"." : "Nota: quando si disabilita l'associazione XML, è necessario registrare manualmente il tipo MIME application / x-drawio per l'estensione \".Drawio\".”, + "Please note: when you disable the XML association, you need to manually register the MIME type application/x-drawio for the extension \".drawio\"." : "Nota: quando si disabilita l'associazione XML, è necessario registrare manualmente il tipo MIME application / x-drawio per l'estensione \".Drawio\".", "Kennedy" : "Kennedy", "Minimal" : "Minimale", "Atlas" : "Atlas", diff --git a/drawio/settings.php b/drawio/settings.php index 94f868d..728f314 100644 --- a/drawio/settings.php +++ b/drawio/settings.php @@ -2,8 +2,6 @@ namespace OCA\Drawio; -use OCP\User; - use OCA\Drawio\AppInfo\Application; diff --git a/drawio/templates/editor.php b/drawio/templates/editor.php index 00d0959..f416ac1 100644 --- a/drawio/templates/editor.php +++ b/drawio/templates/editor.php @@ -3,7 +3,7 @@ script("drawio", "editor"); $frame_params = "?embed=1"; - if ($_["drawioOfflineMode"] == "yes") + if ($_["drawioOfflineMode"] === "yes") { $frame_params .= "&offline=1&stealth=1"; } diff --git a/drawio/templates/settings.php b/drawio/templates/settings.php index b482e23..17a43a8 100644 --- a/drawio/templates/settings.php +++ b/drawio/templates/settings.php @@ -11,10 +11,10 @@

@@ -26,8 +26,8 @@

@@ -36,8 +36,8 @@

@@ -46,8 +46,8 @@