[Comoblog-commit] comoblog/modules/mod_markup/include mod_markup.inc.php,1.3,1.4
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-10-09 07:00:59
|
Update of /cvsroot/comoblog/comoblog/modules/mod_markup/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6087/include Modified Files: mod_markup.inc.php Log Message: mod_markup forced image sizes and download flag fix Index: mod_markup.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_markup/include/mod_markup.inc.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mod_markup.inc.php 9 Oct 2005 06:46:08 -0000 1.3 +++ mod_markup.inc.php 9 Oct 2005 07:00:33 -0000 1.4 @@ -12,7 +12,9 @@ $start = $pos; $end = strpos( $body, "]]", $start + 1); $url = substr($body, $start+8, $end-$start-8); - $html = "<img src='".$url."'>"; + $html = "<table width='".CFG_IMG_MAX_W."' height='".CFG_IMG_MAX_H."'><tr><td height='100%' width='100%'>"; + $html .= "<img height='100%' width='100%' src='".$url."'>"; + $html .= "</td></tr></table>"; $body = substr($body, 0, $start).$html.substr($body, $end+2); $pos = strpos( $body, "[[Image:"); } @@ -81,7 +83,7 @@ else $has_curl = FALSE; - if (!$has_curl || CFG_MOD_MARKUP_DOWNLOAD_IMAGES == "N") + if (!$has_curl || CFG_MOD_MARKUP_DOWNLOAD_IMAGES == "No") $post = process_images_remote( $post ); else $post = process_images_local( $post ); |