Update of /cvsroot/phpwebsite-comm/modules/featuredphoto/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1229/boost
Modified Files:
boost.php update.php
Log Message:
Preparing for 1.2.0
Index: boost.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/featuredphoto/boost/boost.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** boost.php 2 Oct 2007 04:05:29 -0000 1.9
--- boost.php 27 Jan 2008 21:27:15 -0000 1.10
***************
*** 24,28 ****
$proper_name = 'Featured Photo';
! $version = '1.1.0';
$register = FALSE;
$unregister = FALSE;
--- 24,28 ----
$proper_name = 'Featured Photo';
! $version = '1.2.0';
$register = FALSE;
$unregister = FALSE;
Index: update.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/featuredphoto/boost/update.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** update.php 13 Oct 2007 16:59:07 -0000 1.18
--- update.php 27 Jan 2008 21:27:15 -0000 1.19
***************
*** 158,161 ****
--- 158,183 ----
$content[] = '- Now using Image Manager from File Cabinet to manage photos.';
$content[] = '- Switch to use new logIfError() function in the core.';
+
+ case version_compare($currentVersion, '1.2.0', '<'):
+ $db = new PHPWS_DB('featuredphoto_blocks');
+
+ /* First, need to add new column to block table. */
+ if (PHPWS_Error::logIfError($db->addTableColumn('flickr_set', 'BIGINT unsigned NOT NULL', 'current_photo')))
+ {
+ $content[] = '- Unable to create table column flickr_set in featuredphoto_blocks table.';
+ return false;
+ }
+
+ /* Update permissions table. */
+ Users_Permission::registerPermissions('featuredphoto', $content);
+
+ /* Update the templates and config file. */
+ $files = array('templates/settings.tpl', 'templates/block/edit.tpl',
+ 'templates/photo/flickr_view.tpl', 'conf/error.php');
+ featuredphoto_update_files($files, $content);
+
+ $content[] = '- Added ability to pin a photo block to all pages.';
+ $content[] = '- Added Flickr support.';
+ $content[] = '- Added German translation.';
}
|