X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/cf16f4e70f57705e5f6308c10c3af3586b4b3940..a4b7bc30be63caf1ec27cac03f30f5b59eb60dc5:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index e298569..e5e1ffa 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -114,7 +114,9 @@ function shownews($input, $limit = 1000) $article = new ArchiveArticle($filename); print '
  • '; if ($article->thumb) { - printf('', $article->thumb); + $img = preg_replace('{(?<= \b src="/) [^"]* }x', $article->thumb, $article->img); + $img = preg_replace('{(?= />$)}', ' class="left"', $img); + print $img; } print '
    '; printf(