From: <var...@us...> - 2021-08-04 17:26:06
|
Revision: 10438 http://sourceforge.net/p/phpwiki/code/10438 Author: vargenau Date: 2021-08-04 17:26:05 +0000 (Wed, 04 Aug 2021) Log Message: ----------- configurator.php: remove unnecessary braces Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-04 17:11:11 UTC (rev 10437) +++ trunk/configurator.php 2021-08-04 17:26:05 UTC (rev 10438) @@ -733,7 +733,7 @@ $dsn_sqlpass = $properties["SQL Password"]->value(); $dsn_sqlhostorsock = $properties["SQL Database Host"]->value(); $dsn_sqldbname = $properties["SQL Database Name"]->value(); -$dsn_sqlstring = $dsn_sqltype . "://{$dsn_sqluser}:{$dsn_sqlpass}@{$dsn_sqlhostorsock}/{$dsn_sqldbname}"; +$dsn_sqlstring = $dsn_sqltype . "://".$dsn_sqluser.":".$dsn_sqlpass."@".$dsn_sqlhostorsock."/".$dsn_sqldbname; $properties["SQL dsn"] = new unchangeable_define("DATABASE_DSN", @@ -1826,7 +1826,7 @@ { $s = $this->get_config_item_header() . "<input type=\"text\" size=\"50\" name=\"" . $this->get_config_item_name() - . "\" value=\"" . $this->default_value . "\" {$this->jscheck} />"; + . "\" value=\"" . $this->default_value . "\" $this->jscheck />"; if (empty($this->default_value)) return $s . "<p id=\"" . $this->get_config_item_id() . "\" class=\"red\">Cannot be empty.</p>"; else @@ -1987,7 +1987,7 @@ if (empty($value)) $encrypted = false; $s .= "<input type=\"" . ($encrypted ? "text" : "password") . "\" name=\"" . $this->get_config_item_name() - . "\" value=\"" . $value . "\" {$this->jscheck} />"; + . "\" value=\"" . $value . "\" $this->jscheck />"; return $s; } } @@ -2049,7 +2049,7 @@ if ($list_values) $list_values = join("\n", $list_values); $ta = $this->get_config_item_header(); - $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" {$this->jscheck}>"; + $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" $this->jscheck>"; $ta .= $list_values . "</textarea>"; $ta .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>"; return $ta; @@ -2088,7 +2088,7 @@ } $rows = max(3, $count + 1); $ta = $this->get_config_item_header(); - $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" {$this->jscheck}>"; + $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" $this->jscheck>"; $ta .= $list_values . "</textarea>"; $ta .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>"; return $ta; @@ -2125,7 +2125,7 @@ $list_values = join(" : \n", $this->default_value); $rows = max(3, count($this->default_value) + 1); $ta = $this->get_config_item_header(); - $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" {$this->jscheck}>"; + $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" $this->jscheck>"; $ta .= $list_values . "</textarea>"; $ta .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>"; return $ta; @@ -2178,7 +2178,7 @@ { $output = $this->get_config_item_header(); $name = $this->get_config_item_name(); - $output .= '<select name="' . $name . "\" {$this->jscheck}>\n"; + $output .= '<select name="' . $name . "\" $this->jscheck>\n"; $values = $this->values; $default_value = $this->default_value ? 'true' : 'false'; /* There can usually only be two options, there can be This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |