Changeset 4435

Show
Ignore:
Timestamp:
Sat Feb 4 19:47:37 2006
Author:
mugur
Message:

added detection for versions 2.5.x

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/campsite/implementation/utils/campsite-create-instance.php

    r4349 r4435  
    206 206         return $res;  
    207 207  
    208       $versions = array("2.0.x", "2.1.x", "2.2.x", "2.3.x");  
      208     $versions = array("2.0.x", "2.1.x", "2.2.x", "2.3.x", "2.4.x");  
    208 208     foreach ($versions as $index=>$db_version) {  
    209 209         if ($old_version > $db_version)  
    271 271                 $version = "2.4.x";  
    272 272             }  
      273             if (!$res2 = mysql_query("SELECT * FROM UserConfig WHERE `fk_user_id` = 0"))  
      274                 return "Unable to query the database $p_db_name";  
      275             if (mysql_num_rows($res2) > 0) {  
      276                 $version = "2.5.x";  
      277             }  
    273 278         }  
    274 279     }