|
From: <var...@us...> - 2021-08-04 11:19:58
|
Revision: 10425
http://sourceforge.net/p/phpwiki/code/10425
Author: vargenau
Date: 2021-08-04 11:19:57 +0000 (Wed, 04 Aug 2021)
Log Message:
-----------
configurator.php: make Compress Output work
Modified Paths:
--------------
trunk/configurator.php
Modified: trunk/configurator.php
===================================================================
--- trunk/configurator.php 2021-08-04 10:45:01 UTC (rev 10424)
+++ trunk/configurator.php 2021-08-04 11:19:57 UTC (rev 10425)
@@ -2226,17 +2226,19 @@
function __construct($config_item_name, $values = false, $description = '', $jscheck = '')
{
$this->config_item_name = $config_item_name;
- if (!$description)
+ if (!$description) {
$description = text_from_dist($config_item_name);
+ }
$this->description = $description;
// TESTME: get boolean default value from config-default.ini
- if (defined($config_item_name))
+ if (defined($config_item_name)) {
$this->default_value = constant($config_item_name); // ignore given default value
- elseif (is_array($values))
- list($this->default_value, $dummy) = $values[0];
- if (!$values)
- $values = array('false' => "Disabled",
- 'true' => "Enabled");
+ } elseif (is_array($values)) {
+ list($this->default_value, $dummy) = $values[""];
+ }
+ if (!$values) {
+ $values = array('false' => "Disabled", 'true' => "Enabled");
+ }
$this->values = $values;
$this->jscheck = $jscheck;
$this->prefix = "";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|