Commit f1bae66d authored by Anael Mobilia's avatar Anael Mobilia Committed by Alexandre Delaunay

Apply PHPCS rule Generic.Functions.FunctionCallArgumentSpacing (White space...

Apply PHPCS rule Generic.Functions.FunctionCallArgumentSpacing (White space after comma in function call) (#1490)

* Apply PHPCS rule 
  <!-- White space after comma in function call -->
  <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />

+ Fix current code for this rule
=> using phpcbf (phpcs tool)

Part of #1209

* Apply PHPCS rule

  <!-- White space after comma in function call -->
  <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />

+ Fix current code for this rule
=> using phpcbf (phpcs tool)

Part of #1209
parent 1183b9ab
......@@ -36,7 +36,7 @@
*/
// Include plugin if it is a plugin table
if (!strstr($_GET['itemtype'],"Plugin")) {
if (!strstr($_GET['itemtype'], "Plugin")) {
$AJAX_INCLUDE = 1;
}
include ('../inc/includes.php');
......@@ -83,7 +83,7 @@ $query = "SELECT COUNT(`".$_GET['field']."`)
AND `".$_GET['field']."` <> '".$_GET['term']."'
$entity ";
$result = $DB->query($query);
$totnum = $DB->result($result,0,0);
$totnum = $DB->result($result, 0, 0);
$query = "SELECT DISTINCT `".$_GET['field']."` AS VAL
FROM `$table`
......
......@@ -57,7 +57,7 @@ if (isset($_POST["table"])
$tmpname['link'] = $CFG_GLPI['root_doc']."/front/user.php";
$tmpname['comment'] = "";
} else {
$tmpname = getUserName($_POST["value"],2);
$tmpname = getUserName($_POST["value"], 2);
}
echo $tmpname["comment"];
......
......@@ -94,7 +94,7 @@ foreach ($notvalidoptions as $key) {
if(isset($options['locked'])) {
ObjectLock::setReadOnlyProfile() ;
}
CommonGLPI::displayStandardTab($item, $_GET['_glpi_tab'],$_GET["withtemplate"], $options);
CommonGLPI::displayStandardTab($item, $_GET['_glpi_tab'], $_GET["withtemplate"], $options);
if (isset($_GET['full_page_tab'])) {
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownConnect.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownConnect.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"dropdownDelegationUsers.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownDelegationUsers.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownFieldsBlacklist.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownFieldsBlacklist.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownInstallVersion.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownInstallVersion.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......@@ -55,7 +55,7 @@ if ($_POST['softwares_id'] > 0) {
$used = $_POST['used'];
if (count($used)) {
$where = " AND `glpi_softwareversions`.`id` NOT IN ('".implode("','",$used)."')";
$where = " AND `glpi_softwareversions`.`id` NOT IN ('".implode("','", $used)."')";
}
}
// Make a select box
......
......@@ -111,7 +111,7 @@ if (isset($_POST["type"])
echo __('Email followup').'&nbsp;';
$rand = Dropdown::showYesNo('_itil_'.$_POST["actortype"].'[use_notification]', $_POST["use_notif"]);
echo '<br>';
printf(__('%1$s: %2$s'),__('Email'),
printf(__('%1$s: %2$s'), __('Email'),
"<input type='text' size='25' name='_itil_".$_POST["actortype"].
"[alternative_email]'>");
}
......@@ -194,7 +194,7 @@ if (isset($_POST["type"])
echo __('Email followup').'&nbsp;';
$rand = Dropdown::showYesNo('_itil_'.$_POST["actortype"].'[use_notification]', $_POST['use_notif']);
echo '<br>';
printf(__('%1$s: %2$s'),__('Email'),
printf(__('%1$s: %2$s'), __('Email'),
"<input type='text' size='25' name='_itil_".$_POST["actortype"].
"[alternative_email]'>");
}
......
......@@ -48,5 +48,5 @@ if ($_POST["actortype"] > 0) {
$rand = mt_rand();
$ticket->showActorAddForm($_POST["actortype"], $rand, $_SESSION['glpiactive_entity'], array(),
true, false, false);
echo "&nbsp;<input type='submit' name='add_actor' class='submit' value=\""._sx('button','Add')."\">";
echo "&nbsp;<input type='submit' name='add_actor' class='submit' value=\""._sx('button', 'Add')."\">";
}
......@@ -67,5 +67,5 @@ if ($_POST["authtype"] > 0) {
break;
}
echo "&nbsp;<input type='submit' name='$name' class='submit' value=\""._sx('button','Post')."\">";
echo "&nbsp;<input type='submit' name='$name' class='submit' value=\""._sx('button', 'Post')."\">";
}
......@@ -55,7 +55,7 @@ $inline = false;
if (isset($_POST['inline']) && $_POST['inline']) {
$inline = true;
}
$submitname = _sx('button','Post');
$submitname = _sx('button', 'Post');
if (isset($_POST['submitname']) && $_POST['submitname']) {
$submitname= stripslashes($_POST['submitname']);
}
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownNotificationEvent.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownNotificationEvent.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownNotificationTemplate.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownNotificationTemplate.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownRubDocument.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownRubDocument.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownSoftwareLicense.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownSoftwareLicense.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownTicketCategories.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownTicketCategories.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -77,7 +77,7 @@ if (isset($_POST["itemtype"])
// Auto update summary of active or just solved tickets
$params = array('items_id' => '__VALUE__',
'itemtype' => $_POST['itemtype']);
Ajax::updateItemOnSelectEvent($field_id,"item_ticket_selection_information",
Ajax::updateItemOnSelectEvent($field_id, "item_ticket_selection_information",
$CFG_GLPI["root_doc"]."/ajax/ticketiteminformation.php",
$params);
}
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownUnicityFields.php")) {
if (strpos($_SERVER['PHP_SELF'], "dropdownUnicityFields.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -75,7 +75,7 @@ if (isset($_GET['node'])) {
FROM `glpi_entities`
WHERE `entities_id` = '$ID'";
$result2 = $DB->query($query2);
if ($DB->result($result2,0,0) > 0) {
if ($DB->result($result2, 0, 0) > 0) {
$path['data']['title'] .= "&nbsp;<a title=\"".__s('Show all')."\" href='".
$CFG_GLPI["root_doc"]."/front/".$target.
"?active_entity=".$ID."&amp;is_recursive=1'>".
......@@ -91,7 +91,7 @@ if (isset($_GET['node'])) {
$nodes[] = $path;
}
} else { // standard node
$node_id = str_replace('ent','', $_GET['node']);
$node_id = str_replace('ent', '', $_GET['node']);
$query = "SELECT *
FROM `glpi_entities`
WHERE `entities_id` = '$node_id'
......@@ -110,7 +110,7 @@ if (isset($_GET['node'])) {
FROM `glpi_entities`
WHERE `entities_id` = '".$row['id']."'";
$result2 = $DB->query($query2);
if ($DB->result($result2,0,0) > 0) {
if ($DB->result($result2, 0, 0) > 0) {
$path['data']['title'] .= "&nbsp;<a title=\"".__s('Show all')."\" href='".
$CFG_GLPI["root_doc"]."/front/".$target.
"?active_entity=".$row['id']."&amp;is_recursive=1'>".
......
......@@ -44,7 +44,7 @@ Html::header_nocache();
Session::checkLoginUser();
if (isset($_POST['value']) && (strcmp($_POST['value'],'0') == 0)) {
if (isset($_POST['value']) && (strcmp($_POST['value'], '0') == 0)) {
if ($_POST['withtime']) {
Html::showDateTimeField($_POST['name'], array('value' => $_POST['specificvalue']));
......
......@@ -36,7 +36,7 @@
* @since version 0.85
*/
if (strpos($_SERVER['PHP_SELF'],"getDropdownConnect.php")) {
if (strpos($_SERVER['PHP_SELF'], "getDropdownConnect.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......@@ -111,7 +111,7 @@ $LIMIT = "LIMIT $start,$limit";
$where_used = '';
if (!empty($used)) {
$where_used = " AND `$table`.`id` NOT IN ('".implode("','",$used)."')";
$where_used = " AND `$table`.`id` NOT IN ('".implode("','", $used)."')";
}
if ($_POST["onlyglobal"]
......
......@@ -70,7 +70,7 @@ if ($item->isEntityAssign()) {
}
if(isset($_POST['used']) && !empty($_POST['used'])){
$where .= " AND `id` NOT IN ('".implode("','" ,$_POST['used'])."') ";
$where .= " AND `id` NOT IN ('".implode("','", $_POST['used'])."') ";
}
if ($item->maybeDeleted()) {
......@@ -87,20 +87,20 @@ if ((strlen($_POST['searchText']) > 0)) {
$where .= " AND (`name` ".$search."
OR `id` = '".$_POST['searchText']."'";
if (FieldExists($_POST['table'],"contact")) {
if (FieldExists($_POST['table'], "contact")) {
$where .= " OR `contact` ".$search;
}
if (FieldExists($_POST['table'],"serial")) {
if (FieldExists($_POST['table'], "serial")) {
$where .= " OR `serial` ".$search;
}
if (FieldExists($_POST['table'],"otherserial")) {
if (FieldExists($_POST['table'], "otherserial")) {
$where .= " OR `otherserial` ".$search;
}
$where .= ")";
}
//If software or plugins : filter to display only the objects that are allowed to be visible in Helpdesk
if (in_array($_POST['itemtype'],$CFG_GLPI["helpdesk_visible_types"])) {
if (in_array($_POST['itemtype'], $CFG_GLPI["helpdesk_visible_types"])) {
$where .= " AND `is_helpdesk_visible` = '1' ";
}
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"getDropdownNetpoint.php")) {
if (strpos($_SERVER['PHP_SELF'], "getDropdownNetpoint.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"getDropdownNumber.php")) {
if (strpos($_SERVER['PHP_SELF'], "getDropdownNumber.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......@@ -103,11 +103,11 @@ if (!empty($_POST['searchText'])) {
if ($one_item < 0 && count($values)) {
$start = ($_POST['page']-1)*$_POST['page_limit'];
$tosend = array_splice($values,$start, $_POST['page_limit']);
$tosend = array_splice($values, $start, $_POST['page_limit']);
foreach ($tosend as $i) {
$txt = $i;
if (isset($_POST['unit'])) {
$txt = Dropdown::getValueWithUnit($i,$_POST['unit']);
$txt = Dropdown::getValueWithUnit($i, $_POST['unit']);
}
array_push($datas, array('id' => $i,
'text' => strval($txt)));
......@@ -117,7 +117,7 @@ if ($one_item < 0 && count($values)) {
} else {
if (!isset($toadd[$one_item])) {
if (isset($_POST['unit'])) {
$txt = Dropdown::getValueWithUnit($one_item,$_POST['unit']);
$txt = Dropdown::getValueWithUnit($one_item, $_POST['unit']);
}
array_push($datas, array('id' => $one_item,
'text' => strval(stripslashes($txt))));
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"getDropdownUsers.php")) {
if (strpos($_SERVER['PHP_SELF'], "getDropdownUsers.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"getDropdownValue.php")) {
if (strpos($_SERVER['PHP_SELF'], "getDropdownValue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......@@ -111,7 +111,7 @@ if (isset($_POST['used'])) {
$used = $_POST['used'];
if (count($used)) {
$where .=" AND `$table`.`id` NOT IN ('".implode("','",$used)."' ) ";
$where .=" AND `$table`.`id` NOT IN ('".implode("','", $used)."' ) ";
}
}
......@@ -589,7 +589,7 @@ if ($item instanceof CommonTreeDropdown) {
} else if ($field == 'itemtype' && class_exists($data['itemtype'])) {
$tmpitem = new $data[$field]();
if ($tmpitem->getFromDB($data['items_id'])) {
$outputval = sprintf(__('%1$s - %2$s'), $tmpitem->getTypeName(),$tmpitem->getName());
$outputval = sprintf(__('%1$s - %2$s'), $tmpitem->getTypeName(), $tmpitem->getName());
} else {
$outputval = $tmpitem->getTypeName();
}
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"ldapdaterestriction.php")) {
if (strpos($_SERVER['PHP_SELF'], "ldapdaterestriction.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"planningcheck.php")) {
if (strpos($_SERVER['PHP_SELF'], "planningcheck.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -51,7 +51,7 @@ if (isset($_POST["urgency"])
if ($_POST["priority"]) {
echo "<script type='text/javascript' >\n";
echo Html::jsSetDropdownValue($_POST["priority"],$priority);
echo Html::jsSetDropdownValue($_POST["priority"], $priority);
echo "\n</script>";
} else {
......
......@@ -35,7 +35,7 @@
* @brief
*/
if (strpos($_SERVER['PHP_SELF'],"private_public.php")) {
if (strpos($_SERVER['PHP_SELF'], "private_public.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"ruleaction.php")) {
if (strpos($_SERVER['PHP_SELF'], "ruleaction.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"ruleactionvalue.php")) {
if (strpos($_SERVER['PHP_SELF'], "ruleactionvalue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"rulecriteria.php")) {
if (strpos($_SERVER['PHP_SELF'], "rulecriteria.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strstr($_SERVER['PHP_SELF'],"rulecriteriavalue.php")) {
if (strstr($_SERVER['PHP_SELF'], "rulecriteriavalue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"searchmetarow.php")) {
if (strpos($_SERVER['PHP_SELF'], "searchmetarow.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -35,7 +35,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"searchoption.php")) {
if (strpos($_SERVER['PHP_SELF'], "searchoption.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"searchoptionvalue.php")) {
if (strpos($_SERVER['PHP_SELF'], "searchoptionvalue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -37,7 +37,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"searchrow.php")) {
if (strpos($_SERVER['PHP_SELF'], "searchrow.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"subvisibility.php")) {
if (strpos($_SERVER['PHP_SELF'], "subvisibility.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"ticketassigninformation.php")) {
if (strpos($_SERVER['PHP_SELF'], "ticketassigninformation.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......@@ -61,7 +61,7 @@ if (isset($_POST['users_id_assign']) && ($_POST['users_id_assign'] > 0)) {
$options2['reset'] = 'reset';
$url = $ticket->getSearchURL()."?".Toolbox::append_params($options2,'&amp;');
$url = $ticket->getSearchURL()."?".Toolbox::append_params($options2, '&amp;');
//TRANS: %d is number of objects for the user
echo "&nbsp;<a href='$url' title=\"".__s('Processing')."\" target='_blank'>(";
......@@ -84,7 +84,7 @@ if (isset($_POST['users_id_assign']) && ($_POST['users_id_assign'] > 0)) {
$options2['reset'] = 'reset';
$url = $ticket->getSearchURL()."?".Toolbox::append_params($options2,'&amp;');
$url = $ticket->getSearchURL()."?".Toolbox::append_params($options2, '&amp;');
echo "&nbsp;<a href='$url' title=\"".__s('Processing')."\" target='_blank'>(";
printf(__('%1$s: %2$s'), __('Processing'),
......@@ -107,7 +107,7 @@ if (isset($_POST['users_id_assign']) && ($_POST['users_id_assign'] > 0)) {
$options2['reset'] = 'reset';
$url = $ticket->getSearchURL()."?".Toolbox::append_params($options2,'&amp;');
$url = $ticket->getSearchURL()."?".Toolbox::append_params($options2, '&amp;');
//TRANS: %d is number of objects for the user
echo "&nbsp;<a href='$url' title=\"".__s('Processing')."\" target='_blank'>(";
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"ticketiteminformation.php")) {
if (strpos($_SERVER['PHP_SELF'], "ticketiteminformation.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......@@ -46,7 +46,7 @@ if (strpos($_SERVER['PHP_SELF'],"ticketiteminformation.php")) {
Session::checkLoginUser();
if (isset($_POST["my_items"]) && !empty($_POST["my_items"])) {
$splitter = explode("_",$_POST["my_items"]);
$splitter = explode("_", $_POST["my_items"]);
if (count($splitter) == 2) {
$_POST["itemtype"] = $splitter[0];
$_POST["items_id"] = $splitter[1];
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"ticketsatisfaction.php")) {
if (strpos($_SERVER['PHP_SELF'], "ticketsatisfaction.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......
......@@ -36,7 +36,7 @@
*/
$AJAX_INCLUDE = 1;
if (strpos($_SERVER['PHP_SELF'],"uemailUpdate.php")) {
if (strpos($_SERVER['PHP_SELF'], "uemailUpdate.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
......@@ -120,7 +120,7 @@ if ((isset($_POST['field']) && ($_POST["value"] > 0))
}
echo '<br>';
printf(__('%1$s: %2$s'),__('Email'), $email_string);
printf(__('%1$s: %2$s'), __('Email'), $email_string);
}
......
......@@ -36,7 +36,7 @@
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"visibility.php")) {
if (strpos($_SERVER['PHP_SELF'], "visibility.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
......@@ -129,7 +129,7 @@ if (isset($_POST['type']) && !empty($_POST['type'])
}
if ($display && (!isset($_POST['nobutton']) || !$_POST['nobutton'])) {
echo "<td><input type='submit' name='addvisibility' value=\""._sx('button','Add')."\"
echo "<td><input type='submit' name='addvisibility' value=\""._sx('button', 'Add')."\"
class='submit'></td>";