mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Title function modification to fix the title null case
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44170 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0ea568672e
commit
42d7fdbb19
@ -130,9 +130,13 @@ HTML;
|
||||
*/
|
||||
function Title() {
|
||||
$title = parent::Title();
|
||||
return <<<HTML
|
||||
if( $title ) {
|
||||
return <<<HTML
|
||||
<span class="keylabel">$title</span>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user