<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
try {
$init = IDS_Init::init($configFile);
$ids = new IDS_Monitor($_REQUEST, $init);
- } catch (Exception $e) {
+ }
+ catch (Exception $e) {
// might be an old stale copy of Config.IDS.ini
// lets try to rebuild it again and see if it works
$configFile = self::createConfigFile(TRUE);
/**
* Create the default config file for the IDS system
*
- * @param boolean $force should we recreate it irrespective if it exists or not
+ * @param bool $force
+ * Should we recreate it irrespective if it exists or not.
*
* @return string the full path to the config file
* @static
*/
- static function createConfigFile($force = FALSE) {
+ public static function createConfigFile($force = FALSE) {
$config = CRM_Core_Config::singleton();
$configFile = $config->configAndLogDir . 'Config.IDS.ini';
if (!$force && file_exists($configFile)) {
CRM_Core_Error::fatal($msg);
}
}
-