Use __FILE__ instead of hardcoded string in hook registration.

pull/1111/head
very-ape 2021-05-17 10:03:16 -07:00
parent 7b69546ab4
commit e6f480dd75
1 changed files with 4 additions and 4 deletions

View File

@ -63,10 +63,10 @@ function saml_metadata() {
}
function saml_install() {
Hook::register('login_hook', 'addon/saml/saml.php', 'saml_sso_initiate');
Hook::register('logging_out', 'addon/saml/saml.php', 'saml_slo_initiate');
Hook::register('head', 'addon/saml/saml.php', 'saml_head');
Hook::register('footer', 'addon/saml/saml.php', 'saml_footer');
Hook::register('login_hook', __FILE__, 'saml_sso_initiate');
Hook::register('logging_out', __FILE__, 'saml_slo_initiate');
Hook::register('head', __FILE__, 'saml_head');
Hook::register('footer', __FILE__, 'saml_footer');
}
function saml_head(&$a, &$b) {