Fix broken smarty debug regression from #27582
authorlarssandergreen <lars@wildsight.ca>
Thu, 28 Sep 2023 23:33:54 +0000 (17:33 -0600)
committerlarssandergreen <lars@wildsight.ca>
Thu, 28 Sep 2023 23:33:54 +0000 (17:33 -0600)
CRM/Core/Smarty.php

index af9f6536b3d2079a00aebcc56d196100527442a6..8ae1024375bf759bf1f38bf05c2cfa0b9dc3b32e 100644 (file)
@@ -133,12 +133,12 @@ class CRM_Core_Smarty extends Smarty {
     $this->assign('config', $config);
     $this->assign('session', $session);
     $this->assign('debugging', [
-      'smartyDebug' => CRM_Utils_Request::retrieveValue('smartyDebug', NULL, FALSE, FALSE, $_GET),
-      'sessionReset' => CRM_Utils_Request::retrieveValue('sessionReset', NULL, FALSE, FALSE, $_GET),
-      'sessionDebug' => CRM_Utils_Request::retrieveValue('sessionDebug', NULL, FALSE, FALSE, $_GET),
-      'directoryCleanup' => CRM_Utils_Request::retrieveValue('directoryCleanup', NULL, FALSE, FALSE, $_GET),
-      'cacheCleanup' => CRM_Utils_Request::retrieveValue('cacheCleanup', NULL, FALSE, FALSE, $_GET),
-      'configReset' => CRM_Utils_Request::retrieveValue('configReset', NULL, FALSE, FALSE, $_GET),
+      'smartyDebug' => CRM_Utils_Request::retrieveValue('smartyDebug', 'Integer'),
+      'sessionReset' => CRM_Utils_Request::retrieveValue('sessionReset', 'Integer'),
+      'sessionDebug' => CRM_Utils_Request::retrieveValue('sessionDebug', 'Integer'),
+      'directoryCleanup' => CRM_Utils_Request::retrieveValue('directoryCleanup', 'Integer'),
+      'cacheCleanup' => CRM_Utils_Request::retrieveValue('cacheCleanup', 'Integer'),
+      'configReset' => CRM_Utils_Request::retrieveValue('configReset', 'Integer'),
     ]);
 
     $tsLocale = CRM_Core_I18n::getLocale();