* @return object
* @see Civi::log()
*/
- static public function &getLog() {
+ public static function &getLog() {
if (!isset(self::$_log)) {
self::$_log = Log::singleton('display');
}
// Whether we delete/create or simply preserve directories, we should
// certainly make sure the restrictions are enforced.
foreach ([
- $this->templateCompileDir,
- $this->uploadDir,
- $this->configAndLogDir,
- $this->customFileUploadDir,
- ] as $dir) {
+ $this->templateCompileDir,
+ $this->uploadDir,
+ $this->configAndLogDir,
+ $this->customFileUploadDir,
+ ] as $dir) {
if ($dir && is_dir($dir)) {
CRM_Utils_File::restrictAccess($dir);
}
* @deprecated
*/
public function addressSequence() {
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Utils_Address::sequence(Civi::settings()->get(\'address_format\')');
return CRM_Utils_Address::sequence(Civi::settings()->get('address_format'));
}
* @deprecated
*/
public function defaultContactCountry() {
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_BAO_Country::defaultContactCountry');
return CRM_Core_BAO_Country::defaultContactCountry();
}
* @deprecated
*/
public function defaultContactCountryName() {
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_BAO_Country::defaultContactCountryName');
return CRM_Core_BAO_Country::defaultContactCountryName();
}
* @return string
*/
public function defaultCurrencySymbol($defaultCurrency = NULL) {
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_BAO_Country::defaultCurrencySymbol');
return CRM_Core_BAO_Country::defaultCurrencySymbol($defaultCurrency);
}
/**
* Is the system permitted to flush caches at the moment.
*/
- static public function isPermitCacheFlushMode() {
+ public static function isPermitCacheFlushMode() {
return !CRM_Core_Config::singleton()->doNotResetCache;
}
* @param bool $enabled
* If true then caches can be cleared at this time.
*/
- static public function setPermitCacheFlushMode($enabled) {
+ public static function setPermitCacheFlushMode($enabled) {
CRM_Core_Config::singleton()->doNotResetCache = $enabled ? 0 : 1;
}