Changeset 1128

Show
Ignore:
Timestamp:
05/28/08 04:59:09 (6 months ago)
Author:
_ck_
Message:

0.1.2 bug fix to allow uploads from forum page

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-attachments/trunk/bb-attachments.php

    r1114 r1128  
    66Author: _ck_ 
    77Author URI: http://bbShowcase.org 
    8 Version: 0.1.1 
     8Version: 0.1.2 
    99 
    1010License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     
    8686if ($bb_attachments['style']) {add_action('bb_head', 'bb_attachments_add_css');}        // add css if present (including Kakumei  0.9.0.2 LI fix!) 
    8787 
    88 if (!is_topic() && !isset($_GET["new"])) { 
    89         if ($bb_attachments['title']) {add_filter('topic_title', 'bb_attachments_title',200);} 
    90 } else
     88if ($bb_attachments['title'] && !is_topic()) {add_filter('topic_title', 'bb_attachments_title',200);}  
     89 
     90if (isset($_GET["new"]) || is_topic() || is_forum())
    9191        add_action( 'bb_topic.php', 'bb_attachments_cache' ); 
    9292        add_filter('post_text', 'bb_attachments_post_footer',4);