Index: trunk/admin/install/prerequisit.php
===================================================================
diff -u
--- trunk/admin/install/prerequisit.php (revision 0)
+++ trunk/admin/install/prerequisit.php (revision 2183)
@@ -0,0 +1,51 @@
+ '1.1.0',
+
+$min_versions = Array(
+ 'In-Link' => '3.1.0',
+ 'In-News' => '1.1.0',
+ 'In-Bulletin' => '1.1.0',
+ 'In-Commerce' => '1.0.0',
+);
+
+$conn =& GetADODBConnection();
+$query = 'SELECT * FROM '.GetTablePrefix().'Modules';
+$rs = $conn->Execute($query);
+while($rs && !$rs->EOF)
+{
+ if (isset($min_versions[$rs->fields['Name']])) {
+ if ( ConvertVersion($rs->fields['Version']) < ConvertVersion($min_versions[$rs->fields['Name']]) ) {
+ $PreRequisitErrors[] = 'Please upgrade '.$rs->fields['Name'].' to version '.$min_versions[$rs->fields['Name']].' or above';
+ $result = false;
+ }
+ }
+ $rs->MoveNext();
+}
+
+if ($show_errors) {
+ foreach ($PreRequisitErrors as $error) {
+ echo ''.$error.'
';
+ }
+}
+?>
\ No newline at end of file
Index: trunk/core/kernel/utility/http_query.php
===================================================================
diff -u -r1560 -r2183
--- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 1560)
+++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 2183)
@@ -276,9 +276,9 @@
}
// Save Template Name
- $t=$this->getTemplateName( $t );
+ $t=$this->getTemplateName( trim($t, '/') );
if(!$t) $t='index';
- $this->Set('t',$t);
+ $this->Set('t', trim($t, '/') );
}
else {
// Save Session ID
@@ -288,7 +288,7 @@
// Save Template Name
$t=$this->getTemplateName( array_shift($parts) );
if(!$t) $t='index';
- $this->Set('t',$t);
+ $this->Set('t', trim($t, '/') );
}
if($parts)