MINOR Reverted accidental commit from r79279

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.3@79330 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
ischommer 2009-06-16 04:09:03 +00:00 committed by Sam Minnee
parent 9488dd219c
commit 64607059e2
2 changed files with 1 additions and 20 deletions

View File

@ -4,7 +4,7 @@ global $project;
$project = 'mysite';
global $database;
$database = "SS_phpinstaller_23";
$database = "";
require_once("conf/ConfigureFromEnv.php");
@ -12,5 +12,4 @@ require_once("conf/ConfigureFromEnv.php");
// downloaded from http://www.silverstripe.com/themes/
SSViewer::set_theme('blackcandy');
//Object::add_extension('SiteTree', 'Translatable');
?>

View File

@ -2,30 +2,12 @@
class Page extends SiteTree {
static $api_access = true;
public static $db = array(
'AdditionalProperty' => 'Text',
);
public static $has_one = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
if($this->hasExtension('Translatable')) {
$translation = $this->getTranslation(Translatable::default_locale());
$transformation = new Translatable_Transformation($translation);
$additionalField = $transformation->transformFormField(
new TextField('AdditionalProperty')
);
$fields->addFieldToTab('Root.Content.Main', $additionalField);
}
return $fields;
}
}
class Page_Controller extends ContentController {