Update of /cvsroot/phpwebsite-comm/modules/mailinglists/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4712/boost
Modified Files:
boost.php dependency.xml update.php
Log Message:
Preparing for 1.2.0
Index: dependency.xml
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/mailinglists/boost/dependency.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** dependency.xml 22 Aug 2008 03:15:44 -0000 1.3
--- dependency.xml 23 Aug 2008 18:08:25 -0000 1.4
***************
*** 13,15 ****
--- 13,21 ----
<url>http://phpwebsite.appstate.edu/downloads/modules/users/</url>
</module>
+ <module>
+ <title>filecabinet</title>
+ <properName>File Cabinet</properName>
+ <version>2.0.0</version>
+ <url>http://phpwebsite.appstate.edu/downloads/modules/filecabinet/</url>
+ </module>
</dependency>
Index: boost.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/mailinglists/boost/boost.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** boost.php 11 Jun 2008 02:53:28 -0000 1.2
--- boost.php 23 Aug 2008 18:08:25 -0000 1.3
***************
*** 25,29 ****
$proper_name = 'Mailing Lists';
! $version = '1.1.0';
$register = FALSE;
$unregister = FALSE;
--- 25,29 ----
$proper_name = 'Mailing Lists';
! $version = '1.2.0';
$register = FALSE;
$unregister = FALSE;
Index: update.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/mailinglists/boost/update.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** update.php 11 Jun 2008 02:53:28 -0000 1.21
--- update.php 23 Aug 2008 18:08:25 -0000 1.22
***************
*** 30,33 ****
--- 30,57 ----
case version_compare($currentVersion, '1.1.0', '<'):
$content[] = '- Purge deleted site users.';
+
+ case version_compare($currentVersion, '1.2.0', '<'):
+ $db = new PHPWS_DB('mailinglists_emails');
+
+ /* Add new column to email table */
+ if (PHPWS_Error::logIfError($db->addTableColumn('file_id', 'INT NOT NULL', 'msg_html')))
+ {
+ $content[] = '- Unable to create table column file_id in mailinglists_emails table.';
+ return false;
+ }
+
+ /* Update the templates */
+ $files = array('templates/email/edit.tpl',
+ 'templates/email/send_html.tpl',
+ 'templates/email/send_text.tpl',
+ 'templates/email/view.tpl',
+ 'templates/list/edit.tpl');
+ mailinglists_update_files($files, $content);
+
+ $content[] = '- File Cabinet added to email forms for HTML messages.';
+ $content[] = '- Emails are now templated.';
+ $content[] = '- Added workaround for issue where emails could be sent with relative URLs.';
+ $content[] = '- Now call cacheQueries on all DBPagers to retain pager settings.';
+ $content[] = '- Support Smart Tags in HTML emails.';
}
***************
*** 35,37 ****
--- 59,78 ----
}
+ function mailinglists_update_files($files, &$content)
+ {
+ if (PHPWS_Boost::updateFiles($files, 'mailinglists'))
+ {
+ $content[] = '- Updated the following files:';
+ }
+ else
+ {
+ $content[] = '- Unable to update the following files:';
+ }
+
+ foreach ($files as $file)
+ {
+ $content[] = '--- ' . $file;
+ }
+ }
+
?>
\ No newline at end of file
|