From: <var...@us...> - 2014-10-03 14:57:28
|
Revision: 9180 http://sourceforge.net/p/phpwiki/code/9180 Author: vargenau Date: 2014-10-03 14:57:26 +0000 (Fri, 03 Oct 2014) Log Message: ----------- function ImageFontWidth exists Modified Paths: -------------- trunk/lib/WikiPluginCached.php Modified: trunk/lib/WikiPluginCached.php =================================================================== --- trunk/lib/WikiPluginCached.php 2014-10-03 14:54:29 UTC (rev 9179) +++ trunk/lib/WikiPluginCached.php 2014-10-03 14:57:26 UTC (rev 9180) @@ -977,13 +977,8 @@ 'width' => 600, 'height' => 350); - if (function_exists('ImageFontWidth')) { - $charx = ImageFontWidth($fontnr); - $chary = ImageFontHeight($fontnr); - } else { - $charx = 10; - $chary = 10; - } + $charx = ImageFontWidth($fontnr); + $chary = ImageFontHeight($fontnr); $marginx = $charx; $marginy = floor($chary / 2); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |