summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/modules/gentoo/step3.php')
-rw-r--r--frontend/modules/gentoo/step3.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/modules/gentoo/step3.php b/frontend/modules/gentoo/step3.php
index dd2d72c..7074049 100644
--- a/frontend/modules/gentoo/step3.php
+++ b/frontend/modules/gentoo/step3.php
@@ -20,7 +20,7 @@ if (strlen($pkgsets=$this->get_opt('pkgsets'))) {
}
}
if (in_array('pruneinit', $opts)) {
- $r=$S['pdo']->query('SELECT * FROM `gentoo_baseinit` WHERE `profile`='.$profile->id.' ORDER BY `name`, `runlevel`');
+ $r=query('SELECT * FROM `gentoo_baseinit` WHERE `profile`='.$profile->id.' ORDER BY `name`, `runlevel`');
$scripts=array();
while ($script=$r->fetch(PDO::FETCH_ASSOC)) {
$script=new sql_gentoo_baseinit($script);
@@ -29,7 +29,7 @@ if (in_array('pruneinit', $opts)) {
$this->checkbox_array('pruneinit', 'pruneinit', 'Remove the following init scripts', $scripts);
}
if ($this->get_opt('basesystem') == 'manual') {
- $r=$S['pdo']->query('SELECT * FROM `gentoo_basepkgs` WHERE `profile`='.$profile->id.' ORDER BY `pkg`');
+ $r=query('SELECT * FROM `gentoo_basepkgs` WHERE `profile`='.$profile->id.' ORDER BY `pkg`');
$pkgs=array();
while ($pkg=$r->fetch(PDO::FETCH_ASSOC)) {
$pkg=$pkg['pkg'];