CVS update: /cowiki/htdocs/setup/class/task/
[email protected] 8 May 2005 00:58:53 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dgorski Date: 2005/05/07 17:58:53 Modified: cowiki/htdocs/setup/class/task/class.TaskMigrator.php Log: Check for isRequired() File Changes: Directory: /cowiki/htdocs/setup/class/task/ =========================================== File [changed]: class.TaskMigrator.php Url: http://cowiki.tigris.org/source/browse/cowiki/htdocs/setup/class/task/class.TaskMigrator.php?r1=1.5&r2=1.6 Delta lines: +12 -6 -------------------- --- class.TaskMigrator.php 7 May 2005 00:31:59 -0000 1.5 +++ class.TaskMigrator.php 8 May 2005 00:58:51 -0000 1.6 @@ -2,7 +2,7 @@ /** * - * $Id: class.TaskMigrator.php,v 1.5 2005/05/07 00:31:59 dgorski Exp $ + * $Id: class.TaskMigrator.php,v 1.6 2005/05/08 00:58:51 dgorski Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -17,7 +17,7 @@ * @author Daniel T. Gorski, <[email protected]> * @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * */ @@ -52,9 +52,12 @@ // Instantiate migrator class $Mig = new $v($this->State); + if ($Mig->isRequired()) { + // Get description(s) count $nCount += sizeof($Mig->getDescription()); } + } return $nCount != 0; } @@ -72,8 +75,11 @@ // Instantiate migrator class $Mig = new $v($this->State); + if ($Mig->isRequired()) { + // Let do it its work $Mig->perform(); + } } catch (MigratorException $me) { return $this->addError($me->getExceptionMessage());