From: <var...@us...> - 2021-06-28 13:44:51
|
Revision: 10332 http://sourceforge.net/p/phpwiki/code/10332 Author: vargenau Date: 2021-06-28 13:44:54 +0000 (Mon, 28 Jun 2021) Log Message: ----------- lib/plugin/text2png.php: no need for language subdirectory Modified Paths: -------------- trunk/lib/plugin/text2png.php Modified: trunk/lib/plugin/text2png.php =================================================================== --- trunk/lib/plugin/text2png.php 2021-06-28 13:42:18 UTC (rev 10331) +++ trunk/lib/plugin/text2png.php 2021-06-28 13:44:54 UTC (rev 10332) @@ -125,13 +125,8 @@ * user's locale preferences. */ - if ($l == "C") { - $l = "en"; //english=C - } else { - $l = urlencode($l); // who on earth forgot his? - } $basedir = "text2png-image"; - $filepath = getUploadFilePath() . "$basedir/$l"; + $filepath = getUploadFilePath() . "$basedir"; if ($_force or !file_exists($filepath . $filename)) { if (!file_exists($filepath)) { $oldumask = umask(0); @@ -220,7 +215,7 @@ $filepath . $filename)); } } - $url = getUploadDataPath() . "$basedir/" . urlencode($l) . "/" . urlencode($filename); + $url = getUploadDataPath() . "$basedir/" . urlencode($filename); $html->pushContent(HTML::img(array('src' => $url, 'alt' => $text, 'title' => '"' . $text . '"' . _(" produced by ") . $this->getName()))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |