// Move theme choice from AdminTheme page to Shop page

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7848 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-08-02 13:47:34 +00:00
parent 921fbcd564
commit 26efd329a3
7 changed files with 84 additions and 80 deletions
+4 -3
View File
@@ -29,7 +29,6 @@ class ThemeCore extends ObjectModel
{
public $name;
protected $fieldsSize = array('name' => 64);
protected $fieldsValidate = array('name' => 'isGenericName');
protected $table = 'theme';
@@ -44,7 +43,9 @@ class ThemeCore extends ObjectModel
public static function getThemes()
{
return Db::getInstance()->ExecuteS('SELECT *
FROM '._DB_PREFIX_.'theme');
$sql = 'SELECT *
FROM '._DB_PREFIX_.'theme
ORDER BY name';
return Db::getInstance()->ExecuteS($sql);
}
}