diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-11 18:30:31 +0400 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-11 18:30:55 +0400 |
commit | 5492e60510379add1523454f322def81167be8be (patch) | |
tree | 8fff208ff6492758cff1b17aae7ec02c797cd322 /lib | |
parent | e10d99e13da782e4c4bed03974bb10959ed333b4 (diff) |
new style and style cleanup for the news app
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api.php | 7 |
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); } |