// Move theme choice from AdminTheme page to Shop page

This commit is contained in:
rMalie
2011-08-02 13:47:34 +00:00
parent 7506710b75
commit 5c849dfa6d
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);
}
}