Skip to content
This repository
Browse code

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

…ixes #7474)
  • Loading branch information...
commit 4986355e3f169cf0e0f92b3356e7e98700a0449e 1 parent c8052da
Ingo Schommer authored June 15, 2012

Showing 1 changed file with 2 additions and 21 deletions. Show diff stats Hide diff stats

  1. 23  code/model/SiteTree.php
23  code/model/SiteTree.php
@@ -2337,27 +2337,8 @@ protected function getClassDropdown() {
2337 2337
 
2338 2338
 			$pageTypeName = $instance->i18n_singular_name();
2339 2339
 
2340  
-			if($class == $this->class) {
2341  
-				$currentClass = $class;
2342  
-				$result[$class] = $pageTypeName;
2343  
-			} else {
2344  
-				$translation = _t(
2345  
-					'SiteTree.CHANGETO', 
2346  
-					'Change to "%s"', 
2347  
-					
2348  
-					"Pagetype selection dropdown with class names"
2349  
-				);
2350  
-
2351  
-				// @todo legacy fix to avoid empty classname dropdowns when translation doesn't include %s
2352  
-				if(strpos($translation, '%s') !== FALSE) {
2353  
-					$result[$class] = sprintf(
2354  
-						$translation, 
2355  
-						$pageTypeName
2356  
-					);
2357  
-				} else {
2358  
-					$result[$class] = "{$translation} \"{$pageTypeName}\"";
2359  
-				}
2360  
-			}
  2340
+			$currentClass = $class;
  2341
+			$result[$class] = $pageTypeName;
2361 2342
 
2362 2343
 			// if we're in translation mode, the link between the translated pagetype
2363 2344
 			// title and the actual classname might not be obvious, so we add it in parantheses

0 notes on commit 4986355

Please sign in to comment.
Something went wrong with that request. Please try again.