Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Remove DB dependency from SiteTree->provideEntities()

Use class manifest instead, which provides same level of info,
and means we can run the text collector on bare checkouts
without a database set.
  • Loading branch information...
commit bb5e3e5fbd8bcd44bac477d5259f20e71fa7727c 1 parent 1a3728c
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/model/SiteTree.php
View
4 code/model/SiteTree.php
@@ -2704,8 +2704,8 @@ function provideI18nEntities() {
if(isset($entities['Page.SINGULARNAME'])) $entities['Page.SINGULARNAME'][3] = FRAMEWORK_DIR;
if(isset($entities['Page.PLURALNAME'])) $entities['Page.PLURALNAME'][3] = FRAMEWORK_DIR;
- $types = self::page_type_classes();
- foreach($types as $type) {
+ $types = ClassInfo::subclassesFor('SiteTree');
+ foreach($types as $k => $type) {
$inst = singleton($type);
$entities[$type . '.DESCRIPTION'] = array(
$inst->stat('description'),
Please sign in to comment.
Something went wrong with that request. Please try again.