Minor fixes

Allow configuration of database name.
Rewrite from sapphire to framework.
This commit is contained in:
Stephen Shkardoon 2014-09-19 16:49:05 +12:00
parent 63d3a27f4c
commit 54dc4fe40a
1 changed files with 6 additions and 6 deletions

View File

@ -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');
}
}