From: Leandro Lucarella Date: Wed, 18 Jun 2003 19:40:42 +0000 (+0000) Subject: Se corrige un bug. X-Git-Tag: svn_import~474 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/69f0aaef80d18ed1a267634a5f46dc8b84ee6fad?hp=4a23903fc7aff32af88dd6817be6c1e28d2e99f3 Se corrige un bug. --- diff --git a/lib/general.php b/lib/general.php index 057f02b..305632c 100644 --- a/lib/general.php +++ b/lib/general.php @@ -26,8 +26,8 @@ * @param string $ip Include path a agregar antes del actual. */ function prepend_include_path($ip) { - $old = ini_get('include_path'); - ini_set('include_path', "$ip:$old"); + $old = substr(ini_get('include_path'), 2); + ini_set('include_path', ".:$ip:$old"); } ?>