diff options
Diffstat (limited to 'lib/api.php')
-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); } |