mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 02:34:24 +02:00
Fix issue ryancramerdesign/AdminThemeUikit#47 where AdminThemeFramework was not running the headline through the language translation function
This commit is contained in:
@@ -152,6 +152,7 @@ abstract class AdminThemeFramework extends AdminTheme {
|
||||
public function getHeadline() {
|
||||
$headline = $this->wire('processHeadline');
|
||||
if(!$headline) $headline = $this->wire('page')->get('title|name');
|
||||
if($this->wire('languages')) $headline = $this->_($headline);
|
||||
return $this->sanitizer->entities1($headline);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user