1
0

Replace straight SQL with db::build() which takes care of the problem that the table name is not wrapped in curly braces so it won't get prefixed properly

This commit is contained in:
Bharat Mediratta 2010-08-05 11:27:11 -07:00
parent da3978cc03
commit 6dd078a38f

View File

@ -24,8 +24,7 @@ class module_manager_Core {
private static function _get_modules() {
$modules = array();
foreach (db::query("SELECT * FROM `modules` ORDER BY `id`")
->execute() as $row) {
foreach (db::build()->select("*")->from("modules")->order_by("id")->execute() as $row) {
$modules["{$row->name}:$row->id"] = $row->name;
}
return $modules;