summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-11 15:30:31 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-11 15:30:55 +0100
commit5492e60510379add1523454f322def81167be8be (patch)
tree8fff208ff6492758cff1b17aae7ec02c797cd322 /lib
parente10d99e13da782e4c4bed03974bb10959ed333b4 (diff)
new style and style cleanup for the news app
Diffstat (limited to 'lib')
-rw-r--r--lib/api.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/api.php b/lib/api.php
index d3d0e1f1b..28f471207 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -71,8 +71,11 @@ class API {
* @param string $scriptName: the name of the javascript in js/
* without the suffix
*/
- public function addScript($scriptName){
- \OCP\Util::addScript($this->appName, $scriptName);
+ public function addScript($scriptName, $appName=null){
+ if($appName === null ){
+ $appName = $this->appName;
+ }
+ \OCP\Util::addScript($appName, $scriptName);
}