diff options
author | Jorge López Pérez <jorge@adobo.org> | 2013-06-28 15:43:09 +0400 |
---|---|---|
committer | Jorge López Pérez <jorge@adobo.org> | 2013-06-28 15:43:09 +0400 |
commit | 60e645c647eb771b046a50414f5d3df2ed9f9cb2 (patch) | |
tree | b002228b17e98bba9bbbe9d2b890cf4a1abcef19 /user_saml | |
parent | c5c9bf1a714f8c0a876b0c8be7be4cddc2781b9d (diff) |
Define 'p' function for OC < 5
p() function isn't defined in OC 4.5.x
Diffstat (limited to 'user_saml')
-rw-r--r-- | user_saml/appinfo/app.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/user_saml/appinfo/app.php b/user_saml/appinfo/app.php index 05d82aa73..172d7f6b4 100644 --- a/user_saml/appinfo/app.php +++ b/user_saml/appinfo/app.php @@ -23,6 +23,14 @@ if (OCP\App::isEnabled('user_saml')) { + $ocVersion = implode('.',OCP\Util::getVersion()); + if (version_compare($ocVersion,'4.93','<')) { + if ( ! function_exists('p')) { + function p($string) { + print(OC_Util::sanitizeHTML($string)); + } + } + } require_once 'user_saml/user_saml.php'; |