}
if (self::checkCyclicGraph($tree)) {
- CRM_Core_Error::fatal(ts('We detected a cycle which we can't handle. aborting'));
+ CRM_Core_Error::fatal(ts("We detected a cycle which we can't handle. aborting"));
}
// first reset the current cache entries
}
public function invalidKeyCommon() {
- $msg = ts('We can\'t load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.') . '<br /><br />' . ts('Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.') . '<br /><br />' . ts('Error type: Could not find a valid session key.');
+ $msg = ts("We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.") . '<br /><br />' . ts('Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.') . '<br /><br />' . ts('Error type: Could not find a valid session key.');
CRM_Core_Error::fatal($msg);
}
break;
case CRM_Utils_Type::T_TIME:
- CRM_Core_Error::fatal('T_TIME shouldn't be used.');
+ CRM_Core_Error::fatal("T_TIME shouldn't be used.");
//$object->$dbName='000000';
//break;
case CRM_Utils_Type::T_CCNUM:
* Set up variables to build the form.
*
* @return void
- * @access protected
*/
public function preProcess() {
$this->_id = $this->get('id');
$previous_year = $current_year - 1;
$previous_two_year = $current_year - 2;
$previous_three_year = $current_year - 3;
- $up to = $current_year - 4;
+ $upto = $current_year - 4;
$interval[$previous_year] = $previous_year;
$interval[$previous_two_year] = $previous_two_year;
$interval[$previous_three_year] = $previous_three_year;
- $interval["upto_{$up to}"] = "Up To {$up to}";
+ $interval["upto_{$upto}"] = "Up To {$upto}";
foreach ($rows as $key => $row) {
- $display["upto_{$up to}"]
- = CRM_Utils_Array::value("upto_{$up to}", $display)
- + CRM_Utils_Array::value("civicrm_upto_{$up to}", $row);
+ $display["upto_{$upto}"]
+ = CRM_Utils_Array::value("upto_{$upto}", $display)
+ + CRM_Utils_Array::value("civicrm_upto_{$upto}", $row);
$display[$previous_year]
= CRM_Utils_Array::value($previous_year, $display)
+ CRM_Utils_Array::value($previous_year, $row);
*/
public static function boolean($value) {
return preg_match(
- '/(^(1|0)$)|(^(Y(es)?|N(o)?)$)|(^(T(rue)?|F(else)?)$)/i', $value
+ '/(^(1|0)$)|(^(Y(es)?|N(o)?)$)|(^(T(rue)?|F(alse)?)$)/i', $value
) ? TRUE : FALSE;
}
if (preg_match('/^(y(es)?|t(rue)?|1)$/i', $str)) {
return '1';
}
- elseif (preg_match('/^(n(o)?|f(else)?|0)$/i', $str)) {
+ elseif (preg_match('/^(n(o)?|f(alse)?|0)$/i', $str)) {
return '0';
}
else {