Changeset 1011

Show
Ignore:
Timestamp:
03/20/2008 06:41:25 AM (16 months ago)
Author:
DotMG
Message:

refs #381, #562

Add enable_version_check to installer.

Location:
branches/1.1.6.4/setup
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1.6.4/setup/default.php

    r921 r1011  
    144144        ?> 
    145145 
     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 
    146150        <tr><td></td><td><input type="submit" value="Continue" onclick="return check();" /></td></tr> 
    147151 
  • branches/1.1.6.4/setup/install.php

    r1009 r1011  
    99// fetch configuration 
    1010$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). 
     12if (!isset($config["enable_version_check"])) 
     13{ 
     14        $config["enable_version_check"] = "0"; 
     15} 
    1116// merge existing configuration with new one 
    1217$config = array_merge($wakkaConfig, $config);