Ignore:
Timestamp:
09/02/2010 12:38:57 AM (21 months ago)
Author:
ofer
Message:

Fixed bugs noticed by Nicholas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/transposh.php

    r529 r533  
    134134        add_action('comment_post', array(&$this, 'add_comment_meta_settings'), 1); 
    135135        // comment_moderation_text - future filter TODO 
    136  
    137136        // full post wrapping (should happen late) 
    138137        add_filter('the_content', array(&$this, 'post_content_wrap'), 9999); 
     
    217216            logger('Translation completed in ' . ($end_time - $start_time) . ' seconds', 1); 
    218217        } 
    219   
     218 
    220219        return $buffer; 
    221220    } 
     
    433432 
    434433        // attempt to remove old files 
    435         @unlink($this->transposh_plugin_dir.'widgets/tpw_default.php'); 
    436         @unlink($this->transposh_plugin_dir.'core/globals.php'); 
     434        @unlink($this->transposh_plugin_dir . 'widgets/tpw_default.php'); 
     435        @unlink($this->transposh_plugin_dir . 'core/globals.php'); 
    437436 
    438437        logger("plugin_activate exit: " . dirname(__FILE__)); 
     
    619618        $use_params = FALSE; 
    620619        logger("got: $href", 5); 
     620        // fix what might be messed up 
     621        $href = str_replace(array(TP_GTXT_BRK, TP_GTXT_IBRK, TP_GTXT_BRK_CLOSER, TP_GTXT_IBRK_CLOSER), '', $href); 
    621622 
    622623        // Ignore urls not from this site 
Note: See TracChangeset for help on using the changeset viewer.