From: Verdon V. <ve...@us...> - 2009-03-02 19:59:27
|
Update of /cvsroot/phpwebsite-comm/modules/elections/boost In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10916/boost Modified Files: boost.php Added Files: update.php Log Message: preparing 2.0.1 Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/elections/boost/boost.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** boost.php 19 Feb 2009 21:30:09 -0000 1.1 --- boost.php 2 Mar 2009 19:59:08 -0000 1.2 *************** *** 24,28 **** $proper_name = 'Elections'; ! $version = '2.0.0'; $import_sql = true; $version_http = 'http://verdon.ca/downloads/modules/elections/check.xml'; --- 24,28 ---- $proper_name = 'Elections'; ! $version = '2.0.1'; $import_sql = true; $version_http = 'http://verdon.ca/downloads/modules/elections/check.xml'; --- NEW FILE: update.php --- <?php /** * elections - phpwebsite module * * See docs/AUTHORS and docs/COPYRIGHT for relevant info. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @version $Id: update.php,v 1.6 2009/03/02 19:59:08 verdonv Exp $ * @author Verdon Vaillancourt <verdonv at users dot sourceforge dot net> */ function elections_update(&$content, $currentVersion) { $home_dir = PHPWS_Boost::getHomeDir(); switch ($currentVersion) { case version_compare($currentVersion, '2.0.1', '<'): $content[] = '<pre>'; $files = array('templates/view_candidate.tpl', 'templates/view_ballot.tpl', 'templates/list_ballots.tpl' ); electionsUpdateFiles($files, $content); $content[] = '2.0.1 changes ---------------- + Fixed duplicate error when editing candidates + Fixed saving image/file with candidate and ballot + Added image/file to views for ballots and candidates </pre>'; } // end switch return true; } function electionsUpdateFiles($files, &$content) { if (PHPWS_Boost::updateFiles($files, 'elections')) { $content[] = '--- Updated the following files:'; } else { $content[] = '--- Unable to update the following files:'; } $content[] = " " . implode("\n ", $files); } ?> |