Revision 411a1293
Correction pour conventions de codage
Change-Id: I3fcc89478155633b34263679b61bc1e88892195f
src/plugins/vigilo/inc/menu.class.php | ||
---|---|---|
39 | 39 |
return array(); |
40 | 40 |
} |
41 | 41 |
|
42 |
protected static function escape($s) |
|
43 |
{ |
|
44 |
return htmlspecialchars($s, ENT_XML1 | ENT_QUOTES, "utf-8"); |
|
45 |
} |
|
46 |
|
|
42 | 47 |
public static function displayMenu($res, $pipes) |
43 | 48 |
{ |
44 | 49 |
global $DB; |
... | ... | |
129 | 134 |
|
130 | 135 |
$force = empty($_POST['force']) ? '' : 'checked'; |
131 | 136 |
$debug = empty($_POST['debug']) ? '' : 'checked'; |
132 |
$debug_title = htmlspecialchars(__("Display debug and progress information for Vigilo", "vigilo"), ENT_XML1 | ENT_QUOTES, "utf-8"); |
|
133 |
$debug_label = htmlspecialchars(__("Display debug information", "vigilo"), ENT_XML1 | ENT_QUOTES, "utf-8"); |
|
134 |
$force_title = htmlspecialchars(__("Force a full deployment rather than an incremental one", "vigilo"), ENT_XML1 | ENT_QUOTES, "utf-8"); |
|
135 |
$force_label = htmlspecialchars(__("Regenerate all files", "vigilo"), ENT_XML1 | ENT_QUOTES, "utf-8"); |
|
136 |
$deploy_title = htmlspecialchars(__("Deploy the configuration", "vigilo"), ENT_XML1 | ENT_QUOTES, "utf-8"); |
|
137 |
$debug_title = htmlspecialchars( |
|
138 |
__("Display debug and progress information for Vigilo", "vigilo"), |
|
139 |
ENT_XML1 | ENT_QUOTES, |
|
140 |
"utf-8" |
|
141 |
); |
|
142 |
$debug_label = self::escape(__("Display debug information", "vigilo")); |
|
143 |
$force_title = self::escape(__("Force a full deployment rather than an incremental one", "vigilo")); |
|
144 |
$force_label = self::escape(__("Regenerate all files", "vigilo")); |
|
145 |
$deploy_title = self::escape(__("Deploy the configuration", "vigilo")); |
|
137 | 146 |
echo <<<HTML |
138 | 147 |
</textarea> |
139 | 148 |
|
140 | 149 |
<button type="submit" name="deploy" value="1">$deploy_title</button> |
141 | 150 |
|
142 |
<label for="debug"><input name="debug" id="debug" value="1" type="checkbox" $debug title="$debug_title"/> $debug_label</label> |
|
151 |
<label for="debug"><input name="debug" id="debug" value="1" |
|
152 |
type="checkbox" $debug title="$debug_title"/> $debug_label</label> |
|
143 | 153 |
|
144 |
<label for="force"><input name="force" id="force" value="1" type="checkbox" $force title="$force_title"/> $force_label</label> |
|
154 |
<label for="force"><input name="force" id="force" value="1" |
|
155 |
type="checkbox" $force title="$force_title"/> $force_label</label> |
|
145 | 156 |
HTML; |
146 | 157 |
Html::closeForm(); |
147 | 158 |
} |
Also available in: Unified diff