Index: /extensions/Comments_on_Albums/trunk/include/coa_comments_page.php
===================================================================
--- /extensions/Comments_on_Albums/trunk/include/coa_comments_page.php (revision 24608)
+++ /extensions/Comments_on_Albums/trunk/include/coa_comments_page.php (revision 24609)
@@ -29,5 +29,5 @@
// comments on albums page |
// +-----------------------------------------------------------------------+
- if ( isset($_GET['display_mode']) and $_GET['display_mode'] == 'albums' )
+if ( isset($_GET['display_mode']) and $_GET['display_mode'] == 'albums' )
{
include_once(COA_PATH.'include/functions_comment.inc.php'); // custom functions
@@ -342,6 +342,8 @@
function coa_change_comments_list($content, &$smarty) {
- $search = '';
- $replacement = $search.'{$comment.ALT}
';
+ $search[0] = '';
+ $replacement[0] = $search[0].'{$comment.ALT}
';
+ $search[1] = ''.$search[1];
return str_replace($search, $replacement, $content);
}