mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX: check DisplaySignatures on the thread rather than post. #5409
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@113085 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fba76de203
commit
218cfffe21
@ -5,4 +5,8 @@ trunk:
|
|||||||
.: /open/phpinstaller/trunk
|
.: /open/phpinstaller/trunk
|
||||||
sapphire: /open/modules/sapphire/trunk
|
sapphire: /open/modules/sapphire/trunk
|
||||||
cms: /open/modules/cms/trunk
|
cms: /open/modules/cms/trunk
|
||||||
jsparty: /open/modules/jsparty/trunk
|
|
||||||
|
sscom:
|
||||||
|
sapphire: /modules/sapphire/branches/2.4-sscom
|
||||||
|
cms: /modules/cms/branches/2.4-sscom
|
||||||
|
|
||||||
|
@ -5,8 +5,31 @@ $project = 'mysite';
|
|||||||
|
|
||||||
global $database;
|
global $database;
|
||||||
$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');
|
MySQLDatabase::set_connection_charset('utf8');
|
||||||
|
|
||||||
@ -16,3 +39,5 @@ SSViewer::set_theme('blackcandy');
|
|||||||
|
|
||||||
// enable nested URLs for this site (e.g. page/sub-page/)
|
// enable nested URLs for this site (e.g. page/sub-page/)
|
||||||
SiteTree::enable_nested_urls();
|
SiteTree::enable_nested_urls();
|
||||||
|
|
||||||
|
Security::setDefaultAdmin('username', 'password');
|
@ -2,6 +2,7 @@
|
|||||||
class Page extends SiteTree {
|
class Page extends SiteTree {
|
||||||
|
|
||||||
public static $db = array(
|
public static $db = array(
|
||||||
|
'Test' => 'Boolean'
|
||||||
);
|
);
|
||||||
|
|
||||||
public static $has_one = array(
|
public static $has_one = array(
|
||||||
@ -30,12 +31,15 @@ class Page_Controller extends ContentController {
|
|||||||
|
|
||||||
public function init() {
|
public function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
Validator::set_javascript_validation_handler('none');
|
||||||
// Note: you should use SS template require tags inside your templates
|
// Note: you should use SS template require tags inside your templates
|
||||||
// instead of putting Requirements calls here. However these are
|
// instead of putting Requirements calls here. However these are
|
||||||
// included so that our older themes still work
|
// included so that our older themes still work
|
||||||
|
Requirements::javascript('sapphire/thirdparty/jquery/jquery.js');
|
||||||
|
|
||||||
Requirements::themedCSS('layout');
|
Requirements::themedCSS('layout');
|
||||||
Requirements::themedCSS('typography');
|
Requirements::themedCSS('typography');
|
||||||
Requirements::themedCSS('form');
|
Requirements::themedCSS('form');
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user