Revision: 2077
http://mrbs.svn.sourceforge.net/mrbs/?rev=2077&view=rev
Author: cimorrison
Date: 2011-10-12 08:34:45 +0000 (Wed, 12 Oct 2011)
Log Message:
-----------
Added an error suppression operator on the call to getimagesize() in case the
logo is a remote URL and allow_url_fopen is set to false in php.ini. Thanks
to dwpoon. See SF ID 3420435
Modified Paths:
--------------
mrbs/trunk/web/Themes/default/header.inc
Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc 2011-10-11 07:30:08 UTC (rev
2076)
+++ mrbs/trunk/web/Themes/default/header.inc 2011-10-12 08:34:45 UTC (rev
2077)
@@ -1973,7 +1973,9 @@
}
else
{
- $logo_size = getimagesize($mrbs_company_logo);
+ // Suppress error messages in case the logo is a URL and
allow_url_fopen
+ // is not enabled in php.ini
+ $logo_size = @getimagesize($mrbs_company_logo);
echo "<img src=\"$mrbs_company_logo\" " . $logo_size[3] . "
alt=\"$mrbs_company\">\n";
}
if (!empty($mrbs_company_url))
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits