Changeset 1011
- Timestamp:
- 03/20/2008 06:41:25 AM (2 years ago)
- Location:
- branches/1.1.6.4/setup
- Files:
-
- 2 modified
-
default.php (modified) (1 diff)
-
install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1.6.4/setup/default.php
r921 r1011 144 144 ?> 145 145 146 <tr><td></td><td><br /><h2>New version check</h2></td></tr> 147 <tr><td></td><td>It is <strong>strongly recommended</strong> that you leave this option checked if your run your wiki on the internet. Administrator(s) will be notified automatically on the pages SysInfo, AdminUsers and AdminPages if there is a new version of WikkaWiki available for download.</td></tr> 148 <tr><td align="right" nowrap="nowrap"><label for="id_enable_version_check">Enable version checking:</label></td><td><input type="checkbox"<?php echo !isset($wakkaConfig["enable_version_check"]) || $wakkaConfig["enable_version_check"] == "1" ? ' checked="checked"' : ""; ?> name="config[enable_version_check]" value="1" id="id_enable_version_check" /></td></tr> 149 146 150 <tr><td></td><td><input type="submit" value="Continue" onclick="return check();" /></td></tr> 147 151 -
branches/1.1.6.4/setup/install.php
r1009 r1011 9 9 // fetch configuration 10 10 $config = $_POST["config"]; 11 // if the checkbox was not checked, $_POST['config']['enable_version_check'] would not be defined. We must explicitly set it to "0" to overwrite any value already set (if exists). 12 if (!isset($config["enable_version_check"])) 13 { 14 $config["enable_version_check"] = "0"; 15 } 11 16 // merge existing configuration with new one 12 17 $config = array_merge($wakkaConfig, $config);