mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Returning <span class="ins"> instead of <ins> from SiteTree->getTreeTitle() (for easier parsing in javascript tree library which uses <ins> for other purposes)
This commit is contained in:
parent
0b40bda1cc
commit
10abaf0293
@ -2377,7 +2377,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TitleWithStatus will return the title in an <ins>, <del> or
|
* TitleWithStatus will return the title in an <span class="ins">, <span class="del"> or
|
||||||
* <span class=\"modified\"> tag depending on its publication status.
|
* <span class=\"modified\"> tag depending on its publication status.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
@ -2385,12 +2385,12 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
function getTreeTitle() {
|
function getTreeTitle() {
|
||||||
if($this->IsDeletedFromStage) {
|
if($this->IsDeletedFromStage) {
|
||||||
if($this->ExistsOnLive) {
|
if($this->ExistsOnLive) {
|
||||||
$tag ="del title=\"" . _t('SiteTree.REMOVEDFROMDRAFT', 'Removed from draft site') . "\"";
|
$tag ="span class=\"del\" title=\"" . _t('SiteTree.REMOVEDFROMDRAFT', 'Removed from draft site') . "\"";
|
||||||
} else {
|
} else {
|
||||||
$tag ="del class=\"deletedOnLive\" title=\"" . _t('SiteTree.DELETEDPAGE', 'Deleted page') . "\"";
|
$tag ="span class=\"del\" class=\"deletedOnLive\" title=\"" . _t('SiteTree.DELETEDPAGE', 'Deleted page') . "\"";
|
||||||
}
|
}
|
||||||
} elseif($this->IsAddedToStage) {
|
} elseif($this->IsAddedToStage) {
|
||||||
$tag = "ins title=\"" . _t('SiteTree.ADDEDTODRAFT', 'Added to draft site') . "\"";
|
$tag = "span class=\"ins\" title=\"" . _t('SiteTree.ADDEDTODRAFT', 'Added to draft site') . "\"";
|
||||||
} elseif($this->IsModifiedOnStage) {
|
} elseif($this->IsModifiedOnStage) {
|
||||||
$tag = "span title=\"" . _t('SiteTree.MODIFIEDONDRAFT', 'Modified on draft site') . "\" class=\"modified\"";
|
$tag = "span title=\"" . _t('SiteTree.MODIFIEDONDRAFT', 'Modified on draft site') . "\" class=\"modified\"";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user