From 6dccaaa6043b8927f758dddec76546dbb42b5903 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 26 May 2013 15:38:30 +0200 Subject: beauty fixes --- docs/plugins.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plugins.rst b/docs/plugins.rst index c255c162c..a93ee7c1d 100644 --- a/docs/plugins.rst +++ b/docs/plugins.rst @@ -15,7 +15,7 @@ In addition to the basic structure you also want to make sure that the News app use \OCA\AppFramework\Core\API; - if(\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')){ + if (\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')) { // your code here @@ -81,7 +81,7 @@ To add a simple script create the script in the :file:`my_news_plugin/js/script. use \OCA\AppFramework\Core\API; - if(\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')){ + if (\OCP\App::isEnabled('news') && \OCP\App::isEnabled('appframework')) { $api = new API('my_news_plugin'); $api->addScript('script.js'); // add a script from js/script.js -- cgit v1.2.3