Merge pull request #871 from radiorabe/feature/only-display-libretime-as-page-title-when-no-station-name-is-set

Do not add LibreTime to title if station name is set
This commit is contained in:
Kyle Robbertze 2019-09-13 11:07:17 +02:00 committed by GitHub
commit 24dd71ad33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -201,10 +201,11 @@ class Application_Model_Preference
public static function GetHeadTitle()
{
$title = self::getValue("station_name");
if (strlen($title) > 0)
$title .= " - ";
if (empty($title)) {
$title = PRODUCT_NAME;
}
return $title.PRODUCT_NAME;
return $title;
}
public static function SetHeadTitle($title, $view=null)