MDL-14679 fixed some more $db's

This commit is contained in:
skodak
2008-05-31 22:18:41 +00:00
parent 98891b9348
commit fd0e6640cc
18 changed files with 29 additions and 33 deletions
+3 -3
View File
@@ -48,11 +48,11 @@ function ewiki_initialization_wizard($id, &$data, &$action) {
#-- analyze and print settings and misconfigurations
$pf_db = $ewiki_plugins["database"][0];
$db = substr($pf_db, strrpos($pf_db, "_") + 1);
$xdb = substr($pf_db, strrpos($pf_db, "_") + 1);
$o .= '<table border="0" width="90%" class="diagnosis">';
$o .= '<tr><td>DatabaseBackend</td><td>';
$o .= "<b>" . $db . "</b><br />";
if ($db == "files") {
$o .= "<b>" . $xdb . "</b><br />";
if ($xdb == "files") {
$o .= "<small>_DBFILES_DIR='</small><tt>" . EWIKI_DBFILES_DIRECTORY . "'</tt>";
if (strpos(EWIKI_DBFILES_DIRECTORY, "tmp")) {
$o .= "<br /><b>Warning</b>: Storing your pages into a temporary directory is not what you want (there they would get deleted randomly), except for testing purposes of course. See the README.";