From: <var...@us...> - 2009-10-29 08:59:37
|
Revision: 7242 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7242&view=rev Author: vargenau Date: 2009-10-29 08:59:30 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Include "%" in width and height when size=xx% Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-10-28 17:22:54 UTC (rev 7241) +++ trunk/lib/stdlib.php 2009-10-29 08:59:30 UTC (rev 7242) @@ -467,7 +467,7 @@ // We allow size=50% and size=20x30 // We replace this with "width" and "height" HTML attributes elseif ($attr == "size") { - if (preg_match('/(\d+)%/', $value, $m)) { + if (preg_match('/(\d+%)/', $value, $m)) { $link->setAttr('width',$m[1]); $link->setAttr('height',$m[1]); } elseif (preg_match('/(\d+)x(\d+)/', $value, $m)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |