Skip to content
Snippets Groups Projects
Commit f070961b authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fixes for modules/sanitycheck

parent fab5d312
No related branches found
No related tags found
No related merge requests found
<?php <?php
/** /**
* Hook to add the sanitycheck link to the config page. * Hook to add the sanitycheck link to the config page.
* *
* @param \SimpleSAML\XHTML\Template $template The template that we should alter in this hook. * @param \SimpleSAML\XHTML\Template $template The template that we should alter in this hook.
* @return void
*/ */
function sanitycheck_hook_configpage(\SimpleSAML\XHTML\Template &$template) function sanitycheck_hook_configpage(\SimpleSAML\XHTML\Template &$template)
{ {
......
<?php <?php
/** /**
* Hook to run a cron job. * Hook to run a cron job.
* *
* @param array &$croninfo Output * @param array &$croninfo Output
* @return void
*/ */
function sanitycheck_hook_cron(&$croninfo) function sanitycheck_hook_cron(&$croninfo)
{ {
assert(is_array($croninfo)); assert(is_array($croninfo));
...@@ -35,7 +36,7 @@ function sanitycheck_hook_cron(&$croninfo) ...@@ -35,7 +36,7 @@ function sanitycheck_hook_cron(&$croninfo)
$croninfo['summary'][] = 'Sanitycheck error: '.$err; $croninfo['summary'][] = 'Sanitycheck error: '.$err;
} }
} }
} catch (Exception $e) { } catch (\Exception $e) {
$croninfo['summary'][] = 'Error executing sanity check: '.$e->getMessage(); $croninfo['summary'][] = 'Error executing sanity check: '.$e->getMessage();
} }
} }
<?php <?php
/** /**
* Hook to add the modinfo module to the frontpage. * Hook to add the modinfo module to the frontpage.
* *
* @param array &$links The links on the frontpage, split into sections. * @param array &$links The links on the frontpage, split into sections.
* @return void
*/ */
function sanitycheck_hook_frontpage(&$links) function sanitycheck_hook_frontpage(&$links)
{ {
......
<?php <?php
/** /**
* This hook lets the module describe itself. * This hook lets the module describe itself.
* *
* @param array &$moduleinfo The links on the frontpage, split into sections. * @param array &$moduleinfo The links on the frontpage, split into sections.
* @return void
*/ */
function sanitycheck_hook_moduleinfo(&$moduleinfo) function sanitycheck_hook_moduleinfo(&$moduleinfo)
{ {
......
<?php <?php
/** /**
* Hook to add the modinfo module to the frontpage. * Hook to add the modinfo module to the frontpage.
* *
* @param array &$hookinfo hookinfo * @param array &$hookinfo hookinfo
* @return void
*/ */
function sanitycheck_hook_sanitycheck(&$hookinfo) function sanitycheck_hook_sanitycheck(&$hookinfo)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment