// Improve backoffice order

This commit is contained in:
rGaillard
2011-12-29 14:35:03 +00:00
parent e66bc7f4f8
commit e7264d40cf
5 changed files with 23 additions and 12 deletions
+2 -2
View File
@@ -120,14 +120,13 @@ class ShopCore extends ObjectModel
public function __construct($id = null, $id_lang = null, $id_shop = null)
{
parent::__construct($id, $id_lang, $id_shop);
if ($this->id)
{
$sql = 'SELECT su.physical_uri, su.virtual_uri, su.domain, su.domain_ssl, t.name, t.directory
FROM '._DB_PREFIX_.'shop s
LEFT JOIN '._DB_PREFIX_.'shop_url su ON (s.id_shop = su.id_shop)
LEFT JOIN '._DB_PREFIX_.'theme t ON (t.id_theme = s.id_theme)
WHERE s.id_shop = '.$this->id.'
WHERE s.id_shop = '.(int)$this->id.'
AND s.active = 1
AND s.deleted = 0
AND su.main = 1';
@@ -226,6 +225,7 @@ class ShopCore extends ObjectModel
*/
public static function initialize()
{
// Get list of excluded uri
$dirname = dirname(__FILE__);
$directories = scandir($dirname.'/../');