Changeset 477

Show
Ignore:
Timestamp:
02/05/08 22:20:01 (11 months ago)
Author:
padams
Message:

more fixes for wordpress feed tracking.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/owa_wp.php

    r425 r477  
    5656 
    5757        function add_link_tracking($link) { 
     58                 
     59                // check for presence of '?' which is not present under URL rewrite conditions 
     60                if (strpos($link, "?") === false): 
     61                        $link .= '?'; 
     62                endif; 
     63                 
    5864         
     65                 
     66                // setup link template 
     67                $link_template = "%s&%s&%s"; 
     68                         
     69                return sprintf($link_template, 
     70                                           $link, 
     71                                           $this->config['ns'].$this->config['source_param'].'=feed', 
     72                                           $this->config['ns'].$this->config['feed_subscription_param']."=".$_GET[$this->config['feed_subscription_param']]); 
     73                                            
     74                /*                  
    5975                if (!empty($_GET[$this->config['feed_subscription_id']])): 
    6076                        return $link."&".$this->config['ns'].$this->config['source_param']."=feed"."&".$this->config['ns'].$this->config['feed_subscription_id']."=".$_GET[$this->config['feed_subscription_id']]; 
     
    6278                        return $link."&".$this->config['ns'].$this->config['source_param']."=feed"; 
    6379                endif; 
    64          
     80                */ 
    6581        } 
    6682         
     
    7591                $guid = crc32(getmypid().microtime()); 
    7692                 
    77                 return $binfo."&".$this->config['ns'].$this->config['feed_subscription_param']."=".$guid; 
     93                return $binfo."&".$this->config['ns'].$this->config['feed_subscription_param']."=".$guid; 
    7894        } 
    7995