From ec81524945abee091e009d3414c96a9d7da83190 Mon Sep 17 00:00:00 2001 From: bshuttle Date: Fri, 10 Mar 2006 13:52:30 +0000 Subject: [PATCH] fix for hard-to-identify gettext bug, where _() is not installed _and_ MySQL is not running on install. --- config/dmsDefaults.php | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) 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'); -- libgit2 0.21.4