Skip to content

Commit 0b61cae

Browse files
authored
Support DB constants and .svg logo (#40)
1 parent 41b41aa commit 0b61cae

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

repair_settings.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,12 @@
120120
if (isset($_POST['remove_hooks']))
121121
remove_hooks();
122122

123-
// try to find the smflogo: could be a .gif or a .png
124-
$smflogo = "Themes/default/images/smflogo.png";
125-
if (!file_exists(dirname(__FILE__) . "/" . $smflogo))
123+
// try to find the smflogo: could be a .gif or a .png or an .svg
124+
if (file_exists(dirname(__FILE__) . "/Themes/default/images/smflogo.svg"))
125+
$smflogo = "Themes/default/images/smflogo.svg";
126+
elseif (file_exists(dirname(__FILE__) . "/Themes/default/images/smflogo.png"))
127+
$smflogo = "Themes/default/images/smflogo.png";
128+
else
126129
$smflogo = "Themes/default/images/smflogo.gif";
127130

128131
// Note that we're using the default URLs because we aren't even going to try to use Settings.php's settings.
@@ -314,6 +317,12 @@ function initialize_inputs()
314317
{
315318
if (!defined('SMF'))
316319
define('SMF', 1);
320+
321+
if (!defined('POSTGRE_TITLE'))
322+
define('POSTGRE_TITLE', 'PostgreSQL');
323+
324+
if (!defined('MYSQL_TITLE'))
325+
define('MYSQL_TITLE', 'MySQL');
317326

318327
if (empty($smcFunc))
319328
$smcFunc = array();

0 commit comments

Comments
 (0)