mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
This commit is contained in:
@@ -46,7 +46,7 @@ class Admin_Advanced_Settings_Controller extends Admin_Controller {
|
||||
module::set_var($module_name, $var_name, Input::instance()->post("value"));
|
||||
message::success(
|
||||
t("Saved value for %var (%module_name)",
|
||||
array("var" => p::clean($var_name), "module_name" => $module_name)));
|
||||
array("var" => SafeString::of($var_name), "module_name" => $module_name)));
|
||||
|
||||
print json_encode(array("result" => "success"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user