|
From: Verdon V. <ve...@us...> - 2008-07-07 21:01:57
|
Update of /cvsroot/phpwebsite-comm/modules/sitemap/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27962/boost Modified Files: boost.php Added Files: update.php Log Message: 0.5.0 updates Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/sitemap/boost/boost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** boost.php 1 Jul 2008 11:07:27 -0000 1.3 --- boost.php 7 Jul 2008 21:01:33 -0000 1.4 *************** *** 24,28 **** $proper_name = 'Sitemap'; ! $version = '0.4.0'; $register = false; $import_sql = false; --- 24,28 ---- $proper_name = 'Sitemap'; ! $version = '0.5.0'; $register = false; $import_sql = false; --- NEW FILE: update.php --- <?php /** * sitemap - 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.1 2008/07/07 21:01:33 verdonv Exp $ * @author Verdon Vaillancourt <verdonv at users dot sourceforge dot net> */ function sitemap_update(&$content, $currentVersion) { $home_dir = PHPWS_Boost::getHomeDir(); switch ($currentVersion) { case version_compare($currentVersion, '0.5.0', '<'): $content[] = '<pre>'; $files = array('templates/edit_settings.tpl', 'templates/map_settings.tpl' ); sitemapUpdateFiles($files, $content); $content[] = '0.5.0 changes ---------------- + Separated getMenuItems to its own function so I could.. + Added ability to get other non-menu keyed items into sitemap + Added option to include file cabinet keyed items yes/no + A bit of code tidy up + Added english lang file </pre>'; } // end switch return true; } function sitemapUpdateFiles($files, &$content) { if (PHPWS_Boost::updateFiles($files, 'sitemap')) { $content[] = '--- Updated the following files:'; } else { $content[] = '--- Unable to update the following files:'; } $content[] = " " . implode("\n ", $files); } ?> |