1
0
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:
Ryan Cramer
2017-11-03 08:10:47 -04:00
parent 297a64f9d4
commit 8e27f859c0

View File

@@ -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);
}