From 997df1522b272355fb8a086516d2ef22dc0f73ff Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 26 Dec 2009 16:54:09 -0500 Subject: [PATCH] Start making $verbose per-instance instead of static --- framework/Db/lib/Horde/Db/Migration/Base.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/framework/Db/lib/Horde/Db/Migration/Base.php b/framework/Db/lib/Horde/Db/Migration/Base.php index 8e5ad32b4..f1260b9ef 100644 --- a/framework/Db/lib/Horde/Db/Migration/Base.php +++ b/framework/Db/lib/Horde/Db/Migration/Base.php @@ -27,7 +27,7 @@ class Horde_Db_Migration_Base * Print messages as migrations happen * @var boolean */ - public static $verbose = true; + public $verbose = true; /** * The migration version @@ -48,10 +48,11 @@ class Horde_Db_Migration_Base /** */ - public function __construct(Horde_Db_Adapter_Base $connection, $version = null) + public function __construct(Horde_Db_Adapter_Base $connection, $version = null, $verbose = true) { $this->_connection = $connection; $this->version = $version; + $this->verbose = $verbose; } @@ -136,7 +137,7 @@ class Horde_Db_Migration_Base */ public function write($text = '') { - if (self::$verbose) { + if ($this->verbose) { echo "$text\n"; } } -- 2.11.0