Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Simplified page type dropdown labels, removed redundant info (f…

…ixes #7474)
  • Loading branch information...
commit 4986355e3f169cf0e0f92b3356e7e98700a0449e 1 parent c8052da
@chillu chillu authored
Showing with 2 additions and 21 deletions.
  1. +2 −21 code/model/SiteTree.php
View
23 code/model/SiteTree.php
@@ -2337,27 +2337,8 @@ protected function getClassDropdown() {
$pageTypeName = $instance->i18n_singular_name();
- if($class == $this->class) {
- $currentClass = $class;
- $result[$class] = $pageTypeName;
- } else {
- $translation = _t(
- 'SiteTree.CHANGETO',
- 'Change to "%s"',
-
- "Pagetype selection dropdown with class names"
- );
-
- // @todo legacy fix to avoid empty classname dropdowns when translation doesn't include %s
- if(strpos($translation, '%s') !== FALSE) {
- $result[$class] = sprintf(
- $translation,
- $pageTypeName
- );
- } else {
- $result[$class] = "{$translation} \"{$pageTypeName}\"";
- }
- }
+ $currentClass = $class;
+ $result[$class] = $pageTypeName;
// if we're in translation mode, the link between the translated pagetype
// title and the actual classname might not be obvious, so we add it in parantheses
Please sign in to comment.
Something went wrong with that request. Please try again.