Ignore:
Timestamp:
Nov 6, 2011, 7:38:13 PM (12 years ago)
Author:
mistic100
Message:

minor changes for Piwigo 2.3.1 and Subscribe To Comments plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/include/coa_albums.php

    r11417 r12562  
    4242            array(
    4343              'comment_id' => $_GET['comment_to_edit'],
    44               'image_id' => $category['id'],
     44              'category_id' => $category['id'],
    4545              'content' => $_POST['content']
    4646              ),
     
    130130    'author' => trim( @$_POST['author'] ),
    131131    'content' => trim( $_POST['content'] ),
    132     'image_id' => $category['id'],
     132    'category_id' => $category['id'],
    133133  );
    134134
     
    356356  {
    357357    $template->set_prefilter('index', 'coa_messages');
    358    
    359     function coa_messages($content, &$smarty)
    360     {
    361       $search = '{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}';
    362 
    363   $replacement = $search.'
     358  }
     359 
     360  function coa_messages($content, &$smarty)
     361  {
     362    $replacement = '
    364363{if isset($errors)}
    365364<div class="errors">
     
    381380{/if}';
    382381
    383       return str_replace($search, $replacement, $content);
    384     }
     382    return $replacement.$content;
    385383  }
    386384}
Note: See TracChangeset for help on using the changeset viewer.