From 556f1e084e036698fd1bbeb4a474866554087022 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Wed, 14 Feb 2018 13:01:28 +0000
Subject: [PATCH] Correct typo in hook name

---
 modules/core/locales/en/LC_MESSAGES/core.po       | 2 +-
 modules/portal/config-templates/module_portal.php | 2 +-
 modules/sanitycheck/hooks/hook_frontpage.php      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/core/locales/en/LC_MESSAGES/core.po b/modules/core/locales/en/LC_MESSAGES/core.po
index 0c2a4fc64..9ddd25f62 100644
--- a/modules/core/locales/en/LC_MESSAGES/core.po
+++ b/modules/core/locales/en/LC_MESSAGES/core.po
@@ -75,7 +75,7 @@ msgstr "Show statistics metadata"
 msgid "{core:frontpage:link_metarefresh}"
 msgstr "Metarefresh: fetch metadata"
 
-msgid "{core:frontpage:link_santitycheck}"
+msgid "{core:frontpage:link_sanitycheck}"
 msgstr "Sanity check of your SimpleSAMLphp setup"
 
 msgid "{core:frontpage:link_diagnostics}"
diff --git a/modules/portal/config-templates/module_portal.php b/modules/portal/config-templates/module_portal.php
index bff5d9ac6..8bba3c350 100644
--- a/modules/portal/config-templates/module_portal.php
+++ b/modules/portal/config-templates/module_portal.php
@@ -7,7 +7,7 @@ $config = array (
 
 	'pagesets' => array(
 		array('frontpage_welcome', 'frontpage_config', 'frontpage_auth', 'frontpage_federation'),
-		array('santitycheck', 'statistics'),
+		array('sanitycheck', 'statistics'),
 	),
 	
 );
diff --git a/modules/sanitycheck/hooks/hook_frontpage.php b/modules/sanitycheck/hooks/hook_frontpage.php
index bec44d74c..7a13de7c7 100644
--- a/modules/sanitycheck/hooks/hook_frontpage.php
+++ b/modules/sanitycheck/hooks/hook_frontpage.php
@@ -9,8 +9,8 @@ function sanitycheck_hook_frontpage(&$links)
     assert(is_array($links));
     assert(array_key_exists('links', $links));
 
-    $links['config']['santitycheck'] = array(
+    $links['config']['sanitycheck'] = array(
         'href' => SimpleSAML\Module::getModuleURL('sanitycheck/index.php'),
-        'text' => '{core:frontpage:link_santitycheck}',
+        'text' => '{core:frontpage:link_sanitycheck}',
     );
 }
-- 
GitLab