diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index 295f4aea..8d8d46f2 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -253,7 +253,7 @@ JS // TODO Replace with lazy loading on client to avoid performance hit of rendering potentially unused views new LiteralField( 'Tree', - $treeField->createTag( + FormField::create_tag( 'div', array( 'class' => 'cms-tree', diff --git a/code/controllers/ContentController.php b/code/controllers/ContentController.php index c7756dd4..ac382833 100644 --- a/code/controllers/ContentController.php +++ b/code/controllers/ContentController.php @@ -340,18 +340,6 @@ HTML; } } - /** - * Returns the xml:lang and lang attributes. - * - * @deprecated 2.5 Use ContentLocale() instead and write attribute names suitable to XHTML/HTML - * templates directly in the template. - */ - public function LangAttributes() { - Deprecation::notice('2.5', 'Use ContentLocale() instead and write attribute names suitable to XHTML/HTML instead.'); - $locale = $this->ContentLocale(); - return "xml:lang=\"$locale\" lang=\"$locale\""; - } - /** * Returns an RFC1766 compliant locale string, e.g. 'fr-CA'. * Inspects the associated {@link dataRecord} for a {@link SiteTree->Locale} value if present, diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index e1b771a1..1057ca74 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -998,14 +998,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid return SiteConfig::current_site_config(); } - /** - * @deprecated 3.0 Use prepopulate_permission_cache() instead (without the extraneous "p" in "prepopulate") - */ - static public function prepopuplate_permission_cache($permission = 'CanEditType', $ids, $batchCallback = null) { - Deprecation::notice("3.0", "Use prepopulate_permission_cache instead."); - self::prepopulate_permission_cache($permission, $ids, $batchCallback); - } - /** * Pre-populate the cache of canEdit, canView, canDelete, canPublish permissions. * This method will use the static can_(perm)_multiple method for efficiency. @@ -2520,15 +2512,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid return $this->_cache_statusFlags; } - - /** - * @deprecated 3.0 Use getTreeTitle() - */ - public function TreeTitle() { - Deprecation::notice('3.0', 'Use getTreeTitle() instead.'); - return $this->getTreeTitle(); - } - /** * getTreeTitle will return three html DOM elements, an empty with * the class 'jstree-pageicon' in front, following by a wrapping around its diff --git a/code/model/SiteTreeDecorator.php b/code/model/SiteTreeDecorator.php deleted file mode 100644 index 18c6f3e2..00000000 --- a/code/model/SiteTreeDecorator.php +++ /dev/null @@ -1,14 +0,0 @@ -