diff options
Diffstat (limited to 'inc/lib_base.php')
-rwxr-xr-x | inc/lib_base.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php index f30c85d7aec..f098e74c08e 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -86,7 +86,7 @@ $loginresult=OC_USER::loginlisener(); * */ class OC_USER { - + /** * check if the login button is pressed and logg the user in * @@ -125,6 +125,16 @@ class OC_USER { * */ class OC_UTIL { + public static $scripts=array(); + + /** + * add a javascript file + * + * @param url $url + */ + public static function addscript($url){ + self::$scripts[]=$url; + } /** * array to store all the optional navigation buttons of the plugins |