mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 14:55:18 -04:00
Guard against developers who forget to internationalize label strings
This commit is contained in:
@@ -43,6 +43,11 @@ class Menu_Element {
|
||||
* @chainable
|
||||
*/
|
||||
public function label($label) {
|
||||
// Guard against developers who forget to internationalize label strings
|
||||
if (!($label instanceof SafeString)) {
|
||||
$label = new SafeString($label);
|
||||
}
|
||||
|
||||
$this->label = $label;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user