From: Tim Otten Date: Sat, 10 Jan 2015 03:51:01 +0000 (-0800) Subject: INFRA-132 - bin, extern, install, settings, xml - PHPStorm cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=56fdfc521f4ad7d442774125fee5eadc9706dbc0;p=civicrm-core.git INFRA-132 - bin, extern, install, settings, xml - PHPStorm cleanup --- diff --git a/bin/ContributionProcessor.php b/bin/ContributionProcessor.php index 7f516197fc..0e867e266a 100644 --- a/bin/ContributionProcessor.php +++ b/bin/ContributionProcessor.php @@ -190,9 +190,9 @@ class CiviContributeProcessor { $dao->trxn_id = $value; if ($dao->find(TRUE)) { preg_match('/(\d+)$/', $name, $matches); - $seq = $matches[1]; + $seq = $matches[1]; $email = $result["l_email{$seq}"]; - $amt = $result["l_amt{$seq}"]; + $amt = $result["l_amt{$seq}"]; CRM_Core_Error::debug_log_message("Skipped (already recorded) - $email, $amt, $value ..

", TRUE); continue; } @@ -234,9 +234,9 @@ class CiviContributeProcessor { } } if ($result['l_errorcode0'] == '11002') { - $end = $result['l_timestamp99']; - $end_time = strtotime("{$end}", time()); - $end_date = date('Y-m-d\T00:00:00.00\Z', $end_time); + $end = $result['l_timestamp99']; + $end_time = strtotime("{$end}", time()); + $end_date = date('Y-m-d\T00:00:00.00\Z', $end_time); $args['enddate'] = $end_date; } } while ($result['l_errorcode0'] == '11002'); @@ -272,8 +272,8 @@ class CiviContributeProcessor { if (is_array($response[1][$response[0]]['notifications']['charge-amount-notification'])) { if (array_key_exists('google-order-number', - $response[1][$response[0]]['notifications']['charge-amount-notification'] - )) { + $response[1][$response[0]]['notifications']['charge-amount-notification'] + )) { // sometimes 'charge-amount-notification' itself is an absolute // array and not array of arrays. This is the case when there is only one // charge-amount-notification. Hack for this special case - @@ -283,10 +283,10 @@ class CiviContributeProcessor { } foreach ($response[1][$response[0]]['notifications']['charge-amount-notification'] - as $amtData + as $amtData ) { $searchParams = array( - 'order-numbers' => array($amtData['google-order-number']['VALUE']), + 'order-numbers' => array($amtData['google-order-number']['VALUE']), 'notification-types' => array('risk-information', 'new-order', 'charge-amount'), ); $response = CRM_Core_Payment_Google::invokeAPI($paymentProcessor, @@ -323,9 +323,9 @@ class CiviContributeProcessor { static function csv() { - $csvFile = '/home/deepak/Desktop/crm-4247.csv'; + $csvFile = '/home/deepak/Desktop/crm-4247.csv'; $delimiter = ";"; - $row = 1; + $row = 1; $handle = fopen($csvFile, "r"); if (!$handle) { diff --git a/bin/cleanup42.php b/bin/cleanup42.php index 1756e0b4e1..c29eb0559c 100644 --- a/bin/cleanup42.php +++ b/bin/cleanup42.php @@ -50,7 +50,7 @@ function initialize() { function run() { initialize(); - $fh = fopen('php://output', 'w'); + $fh = fopen('php://output', 'w'); $rows = CRM_Upgrade_Incremental_php_FourTwo::deleteInvalidPairs(); if (!empty($rows)) { diff --git a/bin/cli.class.php b/bin/cli.class.php index 639e3d6b6d..9d23e4dd7e 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -36,7 +36,6 @@ * base class for doing all command line operations via civicrm * used by cli.php **/ - class civicrm_cli { // required values that must be passed // via the command line @@ -138,7 +137,7 @@ class civicrm_cli { // find the value of this arg if (preg_match('/=/', $arg)) { $parts = explode('=', $arg); - $arg = $parts[0]; + $arg = $parts[0]; $value = $parts[1]; } else { @@ -199,7 +198,7 @@ class civicrm_cli { $_SERVER['HTTP_HOST'] = $this->_site; $_SERVER['REMOTE_ADDR'] = "127.0.0.1"; $_SERVER['SERVER_SOFTWARE'] = NULL; - $_SERVER['REQUEST_METHOD'] = 'GET'; + $_SERVER['REQUEST_METHOD'] = 'GET'; // SCRIPT_FILENAME needed by CRM_Utils_System::cmsRootPath $_SERVER['SCRIPT_FILENAME'] = __FILE__; @@ -224,9 +223,9 @@ class civicrm_cli { // Now we have a Config object, we can set it from the Base URL. if ($_SERVER['HTTP_HOST'] == 'localhost') { $_SERVER['HTTP_HOST'] = preg_replace( - '!^https?://([^/]+)/$!i', - '$1', - $this->_config->userFrameworkBaseURL); + '!^https?://([^/]+)/$!i', + '$1', + $this->_config->userFrameworkBaseURL); } $class = 'CRM_Utils_System_' . $this->_config->userFramework; @@ -314,7 +313,6 @@ class civicrm_cli { * class used by csv/export.php to export records from * the database in a csv file format. **/ - class civicrm_cli_csv_exporter extends civicrm_cli { var $separator = ','; @@ -358,7 +356,6 @@ class civicrm_cli_csv_exporter extends civicrm_cli { * records based on those found in a csv file * passed to the script. **/ - class civicrm_cli_csv_file extends civicrm_cli { var $header; var $separator = ','; @@ -432,7 +429,6 @@ class civicrm_cli_csv_file extends civicrm_cli { * used by csv/import.php * **/ - class civicrm_cli_csv_importer extends civicrm_cli_csv_file { /** * @param array $params @@ -453,7 +449,6 @@ class civicrm_cli_csv_importer extends civicrm_cli_csv_file { * used by csv/delete.php * **/ - class civicrm_cli_csv_deleter extends civicrm_cli_csv_file { /** * @param array $params diff --git a/bin/deprecated/ParticipantProcessor.php b/bin/deprecated/ParticipantProcessor.php index 3c04bab561..518ea881b2 100644 --- a/bin/deprecated/ParticipantProcessor.php +++ b/bin/deprecated/ParticipantProcessor.php @@ -132,9 +132,9 @@ LEFT JOIN civicrm_event event ON ( event.id = participant.event_id ) $transaction = new CRM_Core_Transaction(); require_once 'CRM/Event/BAO/Participant.php'; - $ids = array($participantId); + $ids = array($participantId); $expiredId = array_search('Expired', $expiredStatuses); - $results = CRM_Event_BAO_Participant::transitionParticipants($ids, $expiredId, $values['status_id'], TRUE, TRUE); + $results = CRM_Event_BAO_Participant::transitionParticipants($ids, $expiredId, $values['status_id'], TRUE, TRUE); $transaction->commit(); if (!empty($results)) { diff --git a/bin/deprecated/UpdateGreeting.php b/bin/deprecated/UpdateGreeting.php index d91bd5af22..d285a00f96 100644 --- a/bin/deprecated/UpdateGreeting.php +++ b/bin/deprecated/UpdateGreeting.php @@ -69,20 +69,25 @@ class CRM_UpdateGreeting { $config = CRM_Core_Config::singleton(); $contactType = CRM_Utils_Request::retrieve('ct', 'String', CRM_Core_DAO::$_nullArray, FALSE, NULL, 'REQUEST'); if (!in_array($contactType, - array('Individual', 'Household', 'Organization') - )) { + array('Individual', 'Household', 'Organization') + ) + ) { CRM_Core_Error::fatal(ts('Invalid Contact Type.')); } $greeting = CRM_Utils_Request::retrieve('gt', 'String', CRM_Core_DAO::$_nullArray, FALSE, NULL, 'REQUEST'); if (!in_array($greeting, - array('email_greeting', 'postal_greeting', 'addressee') - )) { + array('email_greeting', 'postal_greeting', 'addressee') + ) + ) { CRM_Core_Error::fatal(ts('Invalid Greeting Type.')); } if (in_array($greeting, array( - 'email_greeting', 'postal_greeting')) && $contactType == 'Organization') { + 'email_greeting', + 'postal_greeting' + )) && $contactType == 'Organization' + ) { CRM_Core_Error::fatal(ts('You cannot use %1 for contact type %2.', array(1 => $greeting, 2 => $contactType))); } @@ -92,8 +97,8 @@ class CRM_UpdateGreeting { if (!$valueID) { require_once 'CRM/Core/OptionGroup.php'; $contactTypeFilters = array(1 => 'Individual', 2 => 'Household', 3 => 'Organization'); - $filter = CRM_Utils_Array::key($contactType, $contactTypeFilters); - $defaulValueID = CRM_Core_OptionGroup::values($greeting, NULL, NULL, NULL, + $filter = CRM_Utils_Array::key($contactType, $contactTypeFilters); + $defaulValueID = CRM_Core_OptionGroup::values($greeting, NULL, NULL, NULL, " AND is_default = 1 AND ( filter = {$filter} OR filter = 0 )", "value" ); @@ -124,7 +129,9 @@ class CRM_UpdateGreeting { $force = CRM_Utils_Request::retrieve('force', 'String', CRM_Core_DAO::$_nullArray, FALSE, NULL, 'REQUEST'); $processAll = $processOnlyIdSet = FALSE; if (in_array($force, array( - 1, 'true'))) { + 1, + 'true' + ))) { $processAll = TRUE; } elseif ($force == 2) { diff --git a/bin/deprecated/UpdatePledgeRecord.php b/bin/deprecated/UpdatePledgeRecord.php index 98da45db94..1170098959 100644 --- a/bin/deprecated/UpdatePledgeRecord.php +++ b/bin/deprecated/UpdatePledgeRecord.php @@ -70,7 +70,10 @@ class CRM_UpdatePledgeRecord { //unset statues that we never use for pledges foreach (array( - 'Completed', 'Cancelled', 'Failed') as $statusKey) { + 'Completed', + 'Cancelled', + 'Failed' + ) as $statusKey) { if ($key = CRM_Utils_Array::key($statusKey, $allStatus)) { unset($allStatus[$key]); } @@ -143,7 +146,8 @@ SELECT pledge.contact_id as contact_id, if (CRM_Utils_Date::overdue(CRM_Utils_Date::customFormat($dao->scheduled_date, '%Y%m%d'), $now - ) && $dao->payment_status != array_search('Overdue', $allStatus)) { + ) && $dao->payment_status != array_search('Overdue', $allStatus) + ) { $pledgePayments[$dao->pledge_id][$dao->payment_id] = $dao->payment_id; } } @@ -170,7 +174,7 @@ SELECT pledge.contact_id as contact_id, require_once 'CRM/Core/SelectValues.php'; $domain = CRM_Core_BAO_Domain::getDomain(); $tokens = array( - 'domain' => array('name', 'phone', 'address', 'email'), + 'domain' => array('name', 'phone', 'address', 'email'), 'contact' => CRM_Core_SelectValues::contactTokens(), ); diff --git a/bin/givi b/bin/givi index 2ea009ce9d..727227b93e 100755 --- a/bin/givi +++ b/bin/givi @@ -473,7 +473,7 @@ class Givi { * @return bool */ function doReview($baseBranch = NULL) { - if (! $this->doCheckoutAll($baseBranch)) { + if (!$this->doCheckoutAll($baseBranch)) { return FALSE; } @@ -485,7 +485,8 @@ class Givi { $pullRequest = PullRequest::get($prUrl, $this->repos); if ($pullRequest) { $pullRequests[] = $pullRequest; - } else { + } + else { return $this->returnError("Invalid pull-request URL: $prUrl"); } } @@ -551,14 +552,15 @@ class Givi { return $this->returnError("Missing [:]\n"); } if (FALSE !== strpos($newBranchNames, ':')) { - list ($newBranchFromName,$newBranchToName) = explode(':', $newBranchNames); + list ($newBranchFromName, $newBranchToName) = explode(':', $newBranchNames); foreach ($this->repos as $repo => $relPath) { $filteredFromName = $this->filterBranchName($repo, $newBranchFromName); $filteredToName = $this->filterBranchName($repo, $newBranchToName); $this->run($repo, $relPath, 'git', 'push', $newBranchRepo, $filteredFromName . ':' . $filteredToName); } - } else { + } + else { foreach ($this->repos as $repo => $relPath) { $filteredName = $this->filterBranchName($repo, $newBranchNames); $this->run($repo, $relPath, 'git', 'push', $newBranchRepo, $filteredName); @@ -630,7 +632,8 @@ class Givi { printf("\n\n\nRUN [%s]: %s\n", $repoName, $command); if ($this->dryRun) { $r = NULL; - } else { + } + else { $r = system($command); } @@ -729,7 +732,8 @@ class HttpClient { // PHP native client is unreliable PITA for HTTPS if (exec("which wget")) { self::run('wget', '-q', '-O', $file, $url); - } elseif (exec("which curl")) { + } + elseif (exec("which curl")) { self::run('curl', '-o', $file, $url); } diff --git a/extern/authorizeIPN.php b/extern/authorizeIPN.php index 165f01acc6..88e73f5b7b 100644 --- a/extern/authorizeIPN.php +++ b/extern/authorizeIPN.php @@ -42,7 +42,7 @@ $authorizeNetIPN = new CRM_Core_Payment_AuthorizeNetIPN($_REQUEST); try { $authorizeNetIPN->main(); } -catch(CRM_Core_Exception $e) { +catch (CRM_Core_Exception $e) { CRM_Core_Error::debug_log_message($e->getMessage()); CRM_Core_Error::debug_var('error data', $e->getErrorData(), TRUE, TRUE); CRM_Core_Error::debug_var('REQUEST', $_REQUEST, TRUE, TRUE); diff --git a/extern/ipn.php b/extern/ipn.php index 20a046141a..65c8e83a1d 100644 --- a/extern/ipn.php +++ b/extern/ipn.php @@ -51,7 +51,7 @@ else { try { $paypalIPN->main(); } -catch(CRM_Core_Exception $e) { +catch (CRM_Core_Exception $e) { CRM_Core_Error::debug_log_message($e->getMessage()); CRM_Core_Error::debug_var('error data', $e->getErrorData(), TRUE, TRUE); CRM_Core_Error::debug_var('REQUEST', $_REQUEST, TRUE, TRUE); diff --git a/extern/pxIPN.php b/extern/pxIPN.php index 39fffc7ac8..edf1283774 100644 --- a/extern/pxIPN.php +++ b/extern/pxIPN.php @@ -35,9 +35,9 @@ $params = array(1 => array($_GET['userid'], 'String')); $dpsSettings = CRM_Core_DAO::executeQuery($query, $params); while ($dpsSettings->fetch()) { - $dpsUrl = $dpsSettings->url_site; - $dpsUser = $dpsSettings->user_name; - $dpsKey = $dpsSettings->password; + $dpsUrl = $dpsSettings->url_site; + $dpsUser = $dpsSettings->user_name; + $dpsKey = $dpsSettings->password; $dpsMacKey = $dpsSettings->signature; } diff --git a/extern/widget.php b/extern/widget.php index c4bb13ed03..496b72ac3d 100644 --- a/extern/widget.php +++ b/extern/widget.php @@ -38,9 +38,9 @@ $config = CRM_Core_Config::singleton(); $template = CRM_Core_Smarty::singleton(); require_once 'CRM/Utils/Request.php'; -$cpageId = CRM_Utils_Request::retrieve('cpageId', 'Positive', CRM_Core_DAO::$_nullObject); +$cpageId = CRM_Utils_Request::retrieve('cpageId', 'Positive', CRM_Core_DAO::$_nullObject); $widgetId = CRM_Utils_Request::retrieve('widgetId', 'Positive', CRM_Core_DAO::$_nullObject); -$format = CRM_Utils_Request::retrieve('format', 'Positive', CRM_Core_DAO::$_nullObject); +$format = CRM_Utils_Request::retrieve('format', 'Positive', CRM_Core_DAO::$_nullObject); require_once 'CRM/Contribute/BAO/Widget.php'; diff --git a/install/civicrm.php b/install/civicrm.php index e9a7190cea..f50538b360 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -209,14 +209,14 @@ function civicrm_config(&$config) { $params['baseURL'] = isset($config['base_url']) ? $config['base_url'] : civicrm_cms_base(); if ($installType == 'drupal') { if (version_compare(VERSION, '7.0-rc1') >= 0) { - $params['cms'] = 'Drupal'; + $params['cms'] = 'Drupal'; $params['CMSdbUser'] = addslashes($config['drupal']['username']); $params['CMSdbPass'] = addslashes($config['drupal']['password']); $params['CMSdbHost'] = $config['drupal']['server']; $params['CMSdbName'] = addslashes($config['drupal']['database']); } elseif (version_compare(VERSION, '6.0') >= 0) { - $params['cms'] = 'Drupal6'; + $params['cms'] = 'Drupal6'; $params['CMSdbUser'] = addslashes($config['drupal']['username']); $params['CMSdbPass'] = addslashes($config['drupal']['password']); $params['CMSdbHost'] = $config['drupal']['server']; @@ -224,7 +224,7 @@ function civicrm_config(&$config) { } } else { - $params['cms'] = 'WordPress'; + $params['cms'] = 'WordPress'; $params['CMSdbUser'] = addslashes(DB_USER); $params['CMSdbPass'] = addslashes(DB_PASSWORD); $params['CMSdbHost'] = DB_HOST; diff --git a/install/error.html b/install/error.html index bc0d8b3a5c..5e8b0a05b0 100644 --- a/install/error.html +++ b/install/error.html @@ -1,15 +1,16 @@ -<?php echo $errorTitle ?> - /> + <?php echo $errorTitle ?> + />

-

+

- +
diff --git a/install/index.php b/install/index.php index e9268edc9b..4784ae1fdd 100644 --- a/install/index.php +++ b/install/index.php @@ -51,7 +51,10 @@ global $installType; $installType = strtolower($_SESSION['civicrm_install_type']); if (!in_array($installType, array( - 'drupal', 'wordpress'))) { + 'drupal', + 'wordpress' +)) +) { $errorTitle = "Oops! Unsupported installation mode"; $errorMsg = ""; errorDisplayPage($errorTitle, $errorMsg); @@ -83,11 +86,15 @@ if ($installType == 'drupal') { $pattern = '/' . preg_quote(CIVICRM_DIRECTORY_SEPARATOR . 'modules', CIVICRM_DIRECTORY_SEPARATOR) . '/'; if (!preg_match($pattern, - str_replace("\\", "/", $_SERVER['SCRIPT_FILENAME']) - )) { + str_replace("\\", "/", $_SERVER['SCRIPT_FILENAME']) + ) + ) { $errorTitle = "Oops! Please Correct Your Install Location"; $errorMsg = "Please untar (uncompress) your downloaded copy of CiviCRM in the " . implode(CIVICRM_DIRECTORY_SEPARATOR, array( - 'sites', 'all', 'modules')) . " directory below your Drupal root directory. Refer to the online " . $docLink . " for more information."; + 'sites', + 'all', + 'modules' + )) . " directory below your Drupal root directory. Refer to the online " . $docLink . " for more information."; errorDisplayPage($errorTitle, $errorMsg); } } @@ -166,7 +173,10 @@ if ($alreadyInstalled) { if ($installType == 'drupal') { $errorMsg = "CiviCRM has already been installed in this Drupal site. "; + '[your Drupal root directory]', + 'sites', + $siteDir + )) . ".
  • To upgrade an existing installation, refer to the online " . $docLink . ".
  • "; } elseif ($installType == 'wordpress') { $errorMsg = "CiviCRM has already been installed in this WordPress site. "; @@ -276,12 +286,13 @@ class InstallRequirements { */ function checkdatabase($databaseConfig, $dbName) { if ($this->requireFunction('mysql_connect', - array( - "PHP Configuration", - "MySQL support", - "MySQL support not included in PHP.", - ) - )) { + array( + "PHP Configuration", + "MySQL support", + "MySQL support not included in PHP.", + ) + ) + ) { $this->requireMySQLServer($databaseConfig['server'], array( "MySQL $dbName Configuration", @@ -291,14 +302,15 @@ class InstallRequirements { ) ); if ($this->requireMysqlConnection($databaseConfig['server'], - $databaseConfig['username'], - $databaseConfig['password'], - array( - "MySQL $dbName Configuration", - "Are the access credentials correct", - "That username/password doesn't work", - ) - )) { + $databaseConfig['username'], + $databaseConfig['password'], + array( + "MySQL $dbName Configuration", + "Are the access credentials correct", + "That username/password doesn't work", + ) + ) + ) { @$this->requireMySQLVersion("5.1", array( "MySQL $dbName Configuration", @@ -324,7 +336,8 @@ class InstallRequirements { array( "MySQL $dbName Configuration", "Does MySQL thread_stack meet minimum (" . self::MINIMUM_THREAD_STACK . "k)", - "", // "The MySQL thread_stack does not meet minimum " . CRM_Upgrade_Form::MINIMUM_THREAD_STACK . "k. Please update thread_stack in my.cnf.", + "", + // "The MySQL thread_stack does not meet minimum " . CRM_Upgrade_Form::MINIMUM_THREAD_STACK . "k. Please update thread_stack in my.cnf.", ) ); } @@ -394,7 +407,12 @@ class InstallRequirements { $this->errors = NULL; - $this->requirePHPVersion('5.3.3', array("PHP Configuration", "PHP5 installed", NULL, "PHP version " . phpversion())); + $this->requirePHPVersion('5.3.3', array( + "PHP Configuration", + "PHP5 installed", + NULL, + "PHP version " . phpversion() + )); // Check that we can identify the root folder successfully $this->requireFile($crmPath . CIVICRM_DIRECTORY_SEPARATOR . 'README.txt', @@ -421,7 +439,10 @@ class InstallRequirements { foreach ($requiredDirectories as $dir) { $this->requireFile($crmPath . CIVICRM_DIRECTORY_SEPARATOR . $dir, array( - "File permissions", "$dir folder exists", "There is no $dir folder"), TRUE + "File permissions", + "$dir folder exists", + "There is no $dir folder" + ), TRUE ); } @@ -477,7 +498,11 @@ class InstallRequirements { } // Check for $_SERVER configuration - $this->requireServerVariables(array('SCRIPT_NAME', 'HTTP_HOST', 'SCRIPT_FILENAME'), array("Webserver config", "Recognised webserver", "You seem to be using an unsupported webserver. The server variables SCRIPT_NAME, HTTP_HOST, SCRIPT_FILENAME need to be set.")); + $this->requireServerVariables(array('SCRIPT_NAME', 'HTTP_HOST', 'SCRIPT_FILENAME'), array( + "Webserver config", + "Recognised webserver", + "You seem to be using an unsupported webserver. The server variables SCRIPT_NAME, HTTP_HOST, SCRIPT_FILENAME need to be set." + )); // Check for MySQL support $this->requireFunction('mysql_connect', @@ -492,9 +517,9 @@ class InstallRequirements { // Check for xcache_isset and emit warning if exists $this->checkXCache(array( "PHP Configuration", - "XCache compatibility", - "XCache is installed and there are known compatibility issues between XCache and CiviCRM. Consider using an alternative PHP caching mechanism or disable PHP caching altogether.", - )); + "XCache compatibility", + "XCache is installed and there are known compatibility issues between XCache and CiviCRM. Consider using an alternative PHP caching mechanism or disable PHP caching altogether.", + )); // Check memory allocation $this->requireMemory(32 * 1024 * 1024, @@ -627,7 +652,7 @@ class InstallRequirements { $this->testing($testDetails); - $phpVersion = phpversion(); + $phpVersion = phpversion(); $aboveMinVersion = version_compare($phpVersion, $minVersion) >= 0; $belowMaxVersion = $maxVersion ? version_compare($phpVersion, $maxVersion) < 0 : TRUE; @@ -1033,7 +1058,8 @@ class InstallRequirements { * @param $testDetails * @param bool $onlyRequire */ - function requireDatabaseOrCreatePermissions($server, + function requireDatabaseOrCreatePermissions( + $server, $username, $password, $database, @@ -1185,7 +1211,8 @@ class Installer extends InstallRequirements { return; } - if (@mysql_query("CREATE DATABASE $database")) {} + if (@mysql_query("CREATE DATABASE $database")) { + } else { $errorTitle = "Oops! Could not create Database $database"; $errorMsg = "We encountered an error when attempting to create the database. Please check your mysql server permissions and the database name and try again."; @@ -1403,7 +1430,8 @@ function civicrm_install_set_drupal_perms() { watchdog('civicrm', 'Cannot grant the %perm permission because it does not yet exist.', array( - '%perm' => $perm), WATCHDOG_ERROR + '%perm' => $perm + ), WATCHDOG_ERROR ); } $perms = array_intersect($perms, $allPerms); @@ -1442,8 +1470,8 @@ function getSiteDir($cmsPath, $str) { for ($j = count($server); $j > 0; $j--) { $dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i)); if (file_exists($cmsPath . CIVICRM_DIRECTORY_SEPARATOR . - 'sites' . CIVICRM_DIRECTORY_SEPARATOR . $dir - )) { + 'sites' . CIVICRM_DIRECTORY_SEPARATOR . $dir + )) { $siteDir = $dir; return $siteDir; } diff --git a/install/template.css b/install/template.css index ec1e5ddace..15718c677d 100644 --- a/install/template.css +++ b/install/template.css @@ -1,6 +1,7 @@ body { background: #eee; } + #All { font-family: Arial, sans-serif; width: auto; @@ -11,9 +12,11 @@ body { background: #fff; max-width: 1200px; } + form { margin: 0; } + h1 { margin-top: 0; } @@ -48,6 +51,7 @@ p.error { color: white; clear: both; } + p.warning { padding: 0.5em; background-color: #e70; @@ -55,6 +59,7 @@ p.warning { color: white; clear: both; } + p.good { padding: 0.5em; background-color: #0c0; @@ -71,6 +76,7 @@ p.error a { border-collapse: collapse; font-size: 80%; } + .testResults td { border: 1px #ccc solid; width: 400px; diff --git a/settings/Core.setting.php b/settings/Core.setting.php index 2126c878b2..4f461529ad 100644 --- a/settings/Core.setting.php +++ b/settings/Core.setting.php @@ -53,7 +53,6 @@ return array( 'description' => NULL, 'help_text' => NULL, ), - 'contact_edit_options' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', @@ -69,7 +68,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'advanced_search_options' => array( 'group_name' => 'CiviCRM Preferences', @@ -87,7 +86,7 @@ return array( 'description' => NULL, 'help_text' => NULL, ), - 'user_dashboard_options' => array( + 'user_dashboard_options' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'user_dashboard_options', @@ -95,14 +94,14 @@ return array( 'html_type' => 'checkboxes', 'pseudoconstant' => array( 'optionGroupName' => 'user_dashboard_options', - ), + ), 'default' => '12345789', 'add' => '4.1', 'title' => 'Contact Dashboard', 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'address_options' => array( 'group_name' => 'CiviCRM Preferences', @@ -133,7 +132,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'mailing_format' => array( 'group_name' => 'CiviCRM Preferences', @@ -147,7 +146,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'display_name_format' => array( 'group_name' => 'CiviCRM Preferences', @@ -175,7 +174,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'editor_id' => array( 'group_name' => 'CiviCRM Preferences', @@ -231,7 +230,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'activity_assignee_notification_ics' => array( 'group_name' => 'CiviCRM Preferences', @@ -245,7 +244,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'contact_autocomplete_options' => array( 'group_name' => 'CiviCRM Preferences', @@ -262,7 +261,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'contact_reference_options' => array( 'group_name' => 'CiviCRM Preferences', @@ -279,7 +278,7 @@ return array( 'is_domain' => 1, 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, ), 'max_attachments' => array( 'group_name' => 'CiviCRM Preferences', @@ -293,21 +292,23 @@ return array( 'html_attributes' => array( 'size' => 2, 'maxlength' => 8, - ), - 'default' => 3, - 'add' => '4.3', - 'title' => 'Maximum Attachments', - 'is_domain' => 1, - 'is_contact' => 0, - 'description' => 'Maximum number of files (documents, images, etc.) which can attached to emails or activities.', - 'help_text' => NULL, + ), + 'default' => 3, + 'add' => '4.3', + 'title' => 'Maximum Attachments', + 'is_domain' => 1, + 'is_contact' => 0, + 'description' => 'Maximum number of files (documents, images, etc.) which can attached to emails or activities.', + 'help_text' => NULL, ), 'maxFileSize' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'maxFileSize', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'Integer', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -441,8 +442,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'doNotAttachPDFReceipt', - 'prefetch' => 1, // prefetch causes it to be cached in config object. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config object. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'Boolean', 'quick_form_type' => 'YesNo', 'default' => 1, @@ -457,8 +460,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'wkhtmltopdfPath', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -479,8 +484,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'recaptchaPublicKey', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -501,8 +508,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'recaptchaPrivateKey', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -523,8 +532,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'recaptchaPrivateKey', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -545,8 +556,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'dashboardCacheTimeout', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'Integer', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -562,12 +575,13 @@ return array( 'is_contact' => 0, 'description' => NULL, 'help_text' => NULL, - ), + ), 'checksumTimeout' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'checksumTimeout', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent 'type' => 'Integer', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -630,8 +644,10 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'resCacheCode', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -669,7 +685,8 @@ return array( 'type' => 'String', 'html_type' => 'text', 'quick_form_type' => 'Element', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent 'default' => '', 'add' => '4.3', 'title' => 'WordPress Base Page', @@ -682,7 +699,8 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'secondDegRelPermissions', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent 'type' => 'Boolean', 'quick_form_type' => 'YesNo', 'default' => 0, @@ -693,11 +711,10 @@ return array( 'description' => "If enabled, contacts with the permission to edit a related contact will inherit that contact's permission to edit other related contacts", 'help_text' => NULL, ), - 'enable_components' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', - 'name' => 'enable_components', + 'name' => 'enable_components', 'type' => 'Array', 'quick_form_type' => 'Element', 'html_type' => 'advmultiselect', @@ -707,18 +724,17 @@ return array( 'class' => 'advmultiselect', ), 'default' => array('CiviEvent', 'CiviContribute', 'CiviMember', 'CiviMail', 'CiviReport', 'CiviPledge'), - 'add' => '4.4', + 'add' => '4.4', 'title' => 'Enable Components', 'is_domain' => '1', 'is_contact' => 0, 'description' => NULL, - 'help_text' => NULL, + 'help_text' => NULL, 'on_change' => array( array('CRM_Case_Info', 'onToggleComponents'), array('CRM_Core_Component', 'flushEnabledComponents'), ), ), - 'disable_core_css' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', @@ -737,7 +753,8 @@ return array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', 'name' => 'empoweredBy', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent 'type' => 'Boolean', 'quick_form_type' => 'YesNo', 'default' => 1, diff --git a/settings/Event.setting.php b/settings/Event.setting.php index b4148f703e..f745135acf 100644 --- a/settings/Event.setting.php +++ b/settings/Event.setting.php @@ -50,5 +50,5 @@ return array( 'is_contact' => 1, 'description' => "WRITE ME", 'help_text' => 'WRITE ME', - ), + ), ); diff --git a/settings/Localization.setting.php b/settings/Localization.setting.php index a736376997..eb274f03b5 100644 --- a/settings/Localization.setting.php +++ b/settings/Localization.setting.php @@ -41,8 +41,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'monetaryThousandSeparator', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -61,8 +63,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'monetaryDecimalPoint', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -81,8 +85,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'moneyformat', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -98,8 +104,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'moneyvalueformat', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -115,8 +123,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'defaultCurrency', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -135,8 +145,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'defaultContactCountry', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'quick_form_type' => 'Element', 'html_type' => 'text', @@ -155,8 +167,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'countryLimit', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'Array', 'quick_form_type' => 'Element', 'html_type' => 'advmultiselect', @@ -177,8 +191,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'provinceLimit', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'Array', 'quick_form_type' => 'Element', 'html_type' => 'advmultiselect', @@ -199,8 +215,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'inheritLocale', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'Boolean', 'quick_form_type' => 'YesNo', 'default' => '0', @@ -215,8 +233,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'dateformatDatetime', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'default' => '%B %E%f, %Y %l:%M %P', 'add' => '4.3', @@ -230,8 +250,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'dateformatFull', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'default' => '%B %E%f, %Y', 'add' => '4.3', @@ -245,8 +267,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'dateformatPartial', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'default' => '%B %Y', 'add' => '4.3', @@ -260,8 +284,10 @@ return array( 'group_name' => 'Localization Preferences', 'group' => 'localization', 'name' => 'lcMessages', - 'prefetch' => 1, // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent - 'config_only' => 1, //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value + 'prefetch' => 1, + // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent + 'config_only' => 1, + //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value 'type' => 'String', 'default' => 'en_US', 'add' => '4.3', diff --git a/settings/Mailing.setting.php b/settings/Mailing.setting.php index 337c41157b..4b47d07ecb 100644 --- a/settings/Mailing.setting.php +++ b/settings/Mailing.setting.php @@ -48,7 +48,7 @@ return array( 'title' => 'Enable Double Opt-in for Profile Group(s) field', 'is_domain' => 1, 'is_contact' => 0, - 'description' => 'When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.', + 'description' => 'When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.', 'help_text' => NULL, ), 'track_civimail_replies' => array( @@ -119,7 +119,7 @@ return array( 'title' => 'Enable Double Opt-in for Profile Group(s) field', 'is_domain' => 1, 'is_contact' => 0, - 'description' => 'When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.', + 'description' => 'When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.', 'help_text' => NULL, ), 'profile_add_to_group_double_optin' => array( diff --git a/settings/Multisite.setting.php b/settings/Multisite.setting.php index 6459aec389..740934085a 100644 --- a/settings/Multisite.setting.php +++ b/settings/Multisite.setting.php @@ -89,4 +89,4 @@ return array( 'description' => '', 'help_text' => NULL, ), - ); +); diff --git a/xml/GenCode.php b/xml/GenCode.php index 9a2fb79bd6..0f994a9b25 100644 --- a/xml/GenCode.php +++ b/xml/GenCode.php @@ -2,12 +2,15 @@ ini_set('include_path', '.' . PATH_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR . '..'); // make sure the memory_limit is at least 512 MB $memLimitString = trim(ini_get('memory_limit')); -$memLimitUnit = strtolower(substr($memLimitString, -1)); -$memLimit = (int) $memLimitString; +$memLimitUnit = strtolower(substr($memLimitString, -1)); +$memLimit = (int) $memLimitString; switch ($memLimitUnit) { - case 'g': $memLimit *= 1024; - case 'm': $memLimit *= 1024; - case 'k': $memLimit *= 1024; + case 'g': + $memLimit *= 1024; + case 'm': + $memLimit *= 1024; + case 'k': + $memLimit *= 1024; } if ($memLimit >= 0 and $memLimit < 536870912) {