Skip to content

Commit 53df261

Browse files
committed
Some cleanup
Signed by Shawn Bulen, [email protected]
1 parent 62eb75d commit 53df261

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

smfinfo.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ function show_header()
213213
{
214214
global $txt, $smfInfo, $context, $smfinfo_version;
215215

216+
// Find logo image...
217+
if (file_exists('./Themes/default/images/smflogo.svg'))
218+
$smflogo = './Themes/default/images/smflogo.svg';
219+
elseif (file_exists('./Themes/default/images/smflogo.png'))
220+
$smflogo = './Themes/default/images/smflogo.png';
221+
else
222+
$smflogo = './Themes/default/images/smflogo.gif';
223+
216224
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
217225
<html xmlns="http://www.w3.org/1999/xhtml">
218226
<head>
@@ -422,7 +430,7 @@ function addLoadEvent(func)
422430
</head>
423431
<body>
424432
<div id="header">
425-
<a href="http://www.simplemachines.org/" target="_blank"><img src="./Themes/default/images/smflogo.gif" style="width: 258px; float: right;" alt="Simple Machines" border="0" /></a>
433+
<a href="http://www.simplemachines.org/" target="_blank"><img src="' . $smflogo . '" style="width: 258px; float: right;" alt="Simple Machines" border="0" /></a>
426434
<div>', $txt['title'], '</div>
427435
</div>
428436
<div id="content">';

0 commit comments

Comments
 (0)