diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index 27e8a74..eb64a29 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -380,6 +380,11 @@ class KTInit { $KTInit = new KTInit(); +// handle unexpected errors in smarty somewhat more gracefully, even if no gettext is installed. +if (!function_exists('_')) { + function _($s) { return $s; } +} + $KTInit->prependPath(KT_DIR . '/thirdparty/pear'); $KTInit->prependPath(KT_DIR . '/thirdparty/Smarty'); require_once('PEAR.php');