Changeset 1025
- Timestamp:
- 03/30/2008 11:23:56 AM (2 years ago)
- Files:
-
- 1 modified
-
trunk/wikka.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wikka.php
r1024 r1025 806 806 // "trunk_r1009", we only want to compare against "trunk"). 807 807 $version1 = preg_split('/-|_/', WAKKA_VERSION); 808 $version2 = preg_split('/-|_/', $wakkaConfig['wakka_version']); 808 // There is some weirdness with the way PHP either (1) returns from 809 // preg_replace when the search string is "0", or (2) a type 810 // comparison beetween a string and an integer 0. In any case, 811 // remove the if clause below at your own risk. 812 if(0 === $wakkaConfig['wakka_version']) 813 { 814 $version2[0] = $wakkaConfig['wakka_version']; 815 } 816 else 817 { 818 $version2 = preg_split('/-|_/', $wakkaConfig['wakka_version']); 819 } 809 820 if ( $version1[0] !== $version2[0] ) 821 //if($wakkaConfig['wakka_version'] !== WAKKA_VERSION) 810 822 { 811 823 // set up (intended) config location for the installer 812 824 #$wakkaConfigLocation = SITE_CONFIGFILE; // @@@ use directly in installer 813 if ($debug) echo 'site configuration file (to be) lodated at: '.SITE_CONFIGFILE."<br/>\n";825 if ($debug) echo 'site configuration file (to be) lodated at: '.SITE_CONFIGFILE."<br/>\n"; 814 826 $htaccessLocation = str_replace('\\', '/', dirname(__FILE__)).DIRECTORY_SEPARATOR.'.htaccess'; 815 827 #if (file_exists('setup'.DIRECTORY_SEPARATOR.'index.php')) #89