mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-23 15:23:41 +00:00
Use __FILE__ instead of hardcoded string in hook registration.
This commit is contained in:
parent
7b69546ab4
commit
e6f480dd75
1 changed files with 4 additions and 4 deletions
|
@ -63,10 +63,10 @@ function saml_metadata() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saml_install() {
|
function saml_install() {
|
||||||
Hook::register('login_hook', 'addon/saml/saml.php', 'saml_sso_initiate');
|
Hook::register('login_hook', __FILE__, 'saml_sso_initiate');
|
||||||
Hook::register('logging_out', 'addon/saml/saml.php', 'saml_slo_initiate');
|
Hook::register('logging_out', __FILE__, 'saml_slo_initiate');
|
||||||
Hook::register('head', 'addon/saml/saml.php', 'saml_head');
|
Hook::register('head', __FILE__, 'saml_head');
|
||||||
Hook::register('footer', 'addon/saml/saml.php', 'saml_footer');
|
Hook::register('footer', __FILE__, 'saml_footer');
|
||||||
}
|
}
|
||||||
|
|
||||||
function saml_head(&$a, &$b) {
|
function saml_head(&$a, &$b) {
|
||||||
|
|
Loading…
Reference in a new issue