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');
|
||||
|
||||
if (define('SS_DATABASE_NAME')) {
|
||||
$database = SS_DATABASE_NAME;
|
||||
}
|
||||
|
||||
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');
|
||||
|
||||
if(Director::isDev() && @$_GET['db'] == "sqlite3") {
|
||||
@ -39,7 +39,7 @@ try {
|
||||
|
||||
DocumentationViewer::set_edit_link(
|
||||
'framework',
|
||||
'https://github.com/silverstripe/sapphire/edit/%version%/docs/%lang%/%path%',
|
||||
'https://github.com/silverstripe/framework/edit/%version%/docs/%lang%/%path%',
|
||||
array(
|
||||
'rewritetrunktomaster' => true
|
||||
)
|
||||
@ -63,4 +63,4 @@ DocumentationSearch::$boost_by_path = array(
|
||||
// Set shared index (avoid issues with different temp paths between CLI and web users)
|
||||
if(file_exists(BASE_PATH . '/.lucene-index')) {
|
||||
DocumentationSearch::set_index(BASE_PATH . '/.lucene-index');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user