// Add config/alias.php file + refactoring of DB / MySQL classes

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7668 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-07-20 16:10:12 +00:00
parent 42da42f827
commit e921117581
19 changed files with 494 additions and 474 deletions
+2 -16
View File
@@ -75,23 +75,9 @@ require_once(dirname(__FILE__).'/autoload.php');
if (!defined('_PS_MAGIC_QUOTES_GPC_'))
define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc());
if (!defined('_PS_MYSQL_REAL_ESCAPE_STRING_'))
define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string'));
/* aliases */
function p($var) {
return (Tools::p($var));
}
function d($var) {
Tools::d($var);
}
function ppp($var) {
return (Tools::p($var));
}
function ddd($var) {
Tools::d($var);
}
// Include some alias functions
include_once(dirname(__FILE__).'/alias.php');
/* Set the current Shop */
Context::getContext()->shop = Shop::initialize();