mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
Minor fixes
Allow configuration of database name. Rewrite from sapphire to framework.
This commit is contained in:
parent
63d3a27f4c
commit
54dc4fe40a
@ -8,12 +8,12 @@ $database = 'SS_ssdoc';
|
|||||||
|
|
||||||
require_once('conf/ConfigureFromEnv.php');
|
require_once('conf/ConfigureFromEnv.php');
|
||||||
|
|
||||||
|
if (define('SS_DATABASE_NAME')) {
|
||||||
|
$database = SS_DATABASE_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
MySQLDatabase::set_connection_charset('utf8');
|
MySQLDatabase::set_connection_charset('utf8');
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
|
|
||||||
// This line set's the current theme. More themes can be
|
|
||||||
// downloaded from http://www.silverstripe.org/themes/
|
|
||||||
SSViewer::set_theme('docs');
|
SSViewer::set_theme('docs');
|
||||||
|
|
||||||
if(Director::isDev() && @$_GET['db'] == "sqlite3") {
|
if(Director::isDev() && @$_GET['db'] == "sqlite3") {
|
||||||
@ -39,7 +39,7 @@ try {
|
|||||||
|
|
||||||
DocumentationViewer::set_edit_link(
|
DocumentationViewer::set_edit_link(
|
||||||
'framework',
|
'framework',
|
||||||
'https://github.com/silverstripe/sapphire/edit/%version%/docs/%lang%/%path%',
|
'https://github.com/silverstripe/framework/edit/%version%/docs/%lang%/%path%',
|
||||||
array(
|
array(
|
||||||
'rewritetrunktomaster' => true
|
'rewritetrunktomaster' => true
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user