MTSecurityImage

The smarty tags for MTSecurityImage has an error which will cause the security image to not show up when the blog is set to: “Build only Archive Templates dynamically”. The way to fix this problem is to go to your cgi-bin directory go to the PHP folder, then to the plugins folder and modify the function.MTSecurityImage.php script

<?php
function smarty_function_MTSecurityImage($args, &$ctx) {
	$path = $ctx->mt->config['CGIPath'];
	//if (substr($path, strlen($path) - 1, 1) != '/')
	//$path .= '/';
	$path = 'plugins/SCode/mt-scode.cgi';
	return $path;
}
?>

Since CGIPath is already included as part of the img src source tag we don’t need to additionally append the CGIPath to the PHP path information.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon


Leave a Reply