MINOR Using built-in escaping mechanisms in LeftAndMainSubsites, replaced hardcoded language string (AIR-46)

This commit is contained in:
Ingo Schommer 2011-09-05 15:11:23 +02:00
parent 17dde8ff58
commit 9433a097ac

View File

@ -20,7 +20,7 @@ class LeftAndMainSubsites extends Extension {
*/
function getCMSTreeTitle() {
$subsite = Subsite::currentSubSite();
return $subsite ? htmlspecialchars($subsite->Title, ENT_QUOTES) : 'Site Content';
return $subsite ? Convert::raw2xml($subsite->Title) : _t('LeftAndMain.SITECONTENTLEFT');
}
function updatePageOptions(&$fields) {
@ -93,7 +93,7 @@ class LeftAndMainSubsites extends Extension {
foreach($list as $subsite) {
$selected = $subsite->ID == $currentSubsiteID ? ' selected="selected"' : '';
$output .= "\n<option value=\"{$subsite->ID}\"$selected>".htmlspecialchars($subsite->Title, ENT_QUOTES)."</option>";
$output .= "\n<option value=\"{$subsite->ID}\"$selected>". Convert::raw2xml($subsite->Title) . "</option>";
}
$output .= '</select>';