[geeklog-cvs] geeklog-1.3/public_html/admin/install install.php,1.51,1.52
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Thu Aug 7 06:23:19 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin/install
In directory geeklog_prod:/tmp/cvs-serv21991
Modified Files:
install.php
Log Message:
When upgrading, make the selection of the old Geeklog version default to the last one in the list (instead of the first one, i.e. 1.2.5-1).
Index: install.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/install/install.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** install.php 3 Aug 2003 08:15:42 -0000 1.51
--- install.php 7 Aug 2003 10:23:16 -0000 1.52
***************
*** 140,145 ****
$old_versions = array('1.2.5-1','1.3','1.3.1','1.3.2','1.3.2-1','1.3.3','1.3.4','1.3.5','1.3.6','1.3.7');
$versiondd = '<tr><td align="right"><b>Current Geeklog Version:</b></td><td><select name="version">';
! for ($j = 1; $j <= count($old_versions); $j++) {
! $versiondd .= '<option>' . current($old_versions) . '</option>';
next($old_versions);
}
--- 140,150 ----
$old_versions = array('1.2.5-1','1.3','1.3.1','1.3.2','1.3.2-1','1.3.3','1.3.4','1.3.5','1.3.6','1.3.7');
$versiondd = '<tr><td align="right"><b>Current Geeklog Version:</b></td><td><select name="version">';
! $cnt = count ($old_versions);
! for ($j = 1; $j <= $cnt; $j++) {
! $versiondd .= '<option';
! if ($j == $cnt) {
! $versiondd .= ' selected="selected"';
! }
! $versiondd .= '>' . current ($old_versions) . '</option>';
next($old_versions);
}
More information about the geeklog-cvs
mailing list