diff --git a/.mergesources.yml b/.mergesources.yml index b89b29c..bc71aae 100644 --- a/.mergesources.yml +++ b/.mergesources.yml @@ -5,8 +5,4 @@ trunk: .: /open/phpinstaller/trunk sapphire: /open/modules/sapphire/trunk cms: /open/modules/cms/trunk - -sscom: - sapphire: /modules/sapphire/branches/2.4-sscom - cms: /modules/cms/branches/2.4-sscom - + jsparty: /open/modules/jsparty/trunk \ No newline at end of file diff --git a/mysite/_config.php b/mysite/_config.php index 25d7f1e..c68538b 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -5,31 +5,8 @@ $project = 'mysite'; global $database; $database = ''; -//require_once('conf/ConfigureFromEnv.php'); - -Director::set_environment_type("dev"); -global $databaseConfig; - -/* -$databaseConfig = array( - 'type' => 'PostgreSQLDatabase', - 'server' => 'localhost', - 'username' => 'postgres', - 'password' => 'postgres', - 'database' => 'SS_24modules' -); - -*/ - -$databaseConfig = array( - "type" => 'SQLiteDatabase', - "server" => '', - "username" => '', - "password" => '', - "database" => '24modules', - "path" => ASSETS_PATH .'/.db', -); +require_once('conf/ConfigureFromEnv.php'); MySQLDatabase::set_connection_charset('utf8'); @@ -39,5 +16,3 @@ SSViewer::set_theme('blackcandy'); // enable nested URLs for this site (e.g. page/sub-page/) SiteTree::enable_nested_urls(); - -Security::setDefaultAdmin('username', 'password'); \ No newline at end of file diff --git a/mysite/code/Page.php b/mysite/code/Page.php index 1631d35..310620f 100755 --- a/mysite/code/Page.php +++ b/mysite/code/Page.php @@ -2,7 +2,6 @@ class Page extends SiteTree { public static $db = array( - 'Test' => 'Boolean' ); public static $has_one = array( @@ -31,15 +30,12 @@ class Page_Controller extends ContentController { public function init() { parent::init(); - Validator::set_javascript_validation_handler('none'); + // Note: you should use SS template require tags inside your templates // instead of putting Requirements calls here. However these are // included so that our older themes still work - Requirements::javascript('sapphire/thirdparty/jquery/jquery.js'); - Requirements::themedCSS('layout'); Requirements::themedCSS('typography'); Requirements::themedCSS('form'); - } } \ No newline at end of file