From 06fa8c53fef2e6cf06a34e51d265a720758aefc5 Mon Sep 17 00:00:00 2001 From: Eudyptula Date: Sat, 15 Aug 2009 21:28:13 -0400 Subject: Fix builds->bundle() to use bundle column, not look in buildopts for bundler --- shared/classes/build.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/shared/classes/build.php b/shared/classes/build.php index 2484bf0..357d971 100644 --- a/shared/classes/build.php +++ b/shared/classes/build.php @@ -203,11 +203,10 @@ class sql_build extends conf_build_common { global $S; try { $opts=$this->get_opts(); - $bundler=$opts['bundler']; - if (!is_readable(BACKEND."/bundlers/$bundler/bundle.php")) - throw_exception("No bundle script for bundler $bundler"); + if (!is_readable(BACKEND."/bundlers/$this->bundler/bundle.php")) + throw_exception("No bundle script for bundler $this->bundler"); $S['build_steps']=array(); - $file=require(BACKEND."/bundlers/$bundler/bundle.php"); + $file=require(BACKEND."/bundlers/$this->bundler/bundle.php"); switch($this->status) { case 'building': $this->status='bundling'; @@ -221,7 +220,7 @@ class sql_build extends conf_build_common { return $file; } while ($step < count($S['build_steps'])) { - require(BACKEND."/bundlers/$bundler/{$S['build_steps'][$step]}.php"); + require(BACKEND."/bundlers/$this->bundler/{$S['build_steps'][$step]}.php"); $step++; $this->build_step=$step; $this->write(); -- cgit v1.2.3-65-gdbad