Do not use translated messages for values, rather use hardcoded strings.

This way we avoid possible breakage on language change.
This commit is contained in:
Michal Čihař
2010-01-13 13:38:38 +00:00
parent 2c5f033a0d
commit be5e0baab4
2 changed files with 3 additions and 3 deletions

View File

@@ -1101,11 +1101,11 @@ foreach ($rows as $row_id => $vrow) {
<?php
if (isset($where_clause)) {
?>
<option value="<?php echo $strSave; ?>"><?php echo $strSave; ?></option>
<option value="save"><?php echo $strSave; ?></option>
<?php
}
?>
<option value="<?php echo $strInsertAsNewRow; ?>"><?php echo $strInsertAsNewRow; ?></option>
<option value="insert"><?php echo $strInsertAsNewRow; ?></option>
</select>
<?php
echo "\n";

View File

@@ -138,7 +138,7 @@ if (isset($_REQUEST['where_clause'])) {
// we were editing something => use the WHERE clause
$loop_array = (is_array($_REQUEST['where_clause']) ? $_REQUEST['where_clause'] : array($_REQUEST['where_clause']));
$using_key = true;
$is_insert = ($_REQUEST['submit_type'] == $GLOBALS['strInsertAsNewRow']);
$is_insert = ($_REQUEST['submit_type'] == 'insert');
} else {
// new row => use indexes
$loop_array = array();