From: <car...@us...> - 2025-02-22 08:33:12
|
Revision: 11160 http://sourceforge.net/p/phpwiki/code/11160 Author: carstenklapp Date: 2025-02-22 08:33:09 +0000 (Sat, 22 Feb 2025) Log Message: ----------- boolean defines commenting should really be fixed now. leaving debugging code in at least until rest of configurator is fixed Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2025-02-22 08:17:25 UTC (rev 11159) +++ trunk/configurator.php 2025-02-22 08:33:09 UTC (rev 11160) @@ -2405,7 +2405,7 @@ } else { $default_value = $this->default_value; } - $default_value = $default_value ? true : 'false'; //FIXME: ugly hack to cast booleans around, otherwise false will never get commented even though it is default false + $default_value = $default_value ? 'true' : 'false'; //FIXME: ugly hack to cast booleans around, otherwise false will never get commented even though it is default false if ($posted_value == $default_value) { return "$n;" . $this->_config_format($posted_value); return "$n; DEBUG: equal dv=$default_value".gettype($default_value)." pv=" .gettype($posted_value). $this->_config_format($posted_value); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |