Changeset 21327


Ignore:
Timestamp:
Mar 7, 2013, 6:45:33 PM (11 years ago)
Author:
mistic100
Message:

compatible with question_mark_in_url=false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/reply_to/reply_to.inc.php

    r15117 r21327  
    3737      foreach ($comments as $tpl_var)
    3838      {
    39         $replyto_links[ $tpl_var['ID'] ] = get_absolute_root_url().$tpl_var['U_PICTURE'].'&rt='.$tpl_var['ID'].'&rta='.$tpl_var['AUTHOR'].'#commentform';
     39        $replyto_links[ $tpl_var['ID'] ] = add_url_params(
     40          $tpl_var['U_PICTURE'],
     41          array(
     42            'rt' => $tpl_var['ID'],
     43            'rta' =>$tpl_var['AUTHOR'],
     44            )
     45          ).'#commentform';
    4046      }
    4147     
     
    109115  .replyTo {ldelim}
    110116    display:none;
    111     background:url({$REPLYTO_PATH}reply.png) left top no-repeat;
     117    background:url({$ROOT_URL}{$REPLYTO_PATH}reply.png) left top no-repeat;
    112118    height:16px;
    113119    margin-left:20px;
     
    151157  .replyTo {ldelim}
    152158    display:none;
    153     background:url({$REPLYTO_PATH}reply.png) left top no-repeat;
     159    background:url({$ROOT_URL}{$REPLYTO_PATH}reply.png) left top no-repeat;
    154160    height:16px;
    155161    margin-left:20px;
     
    228234          'image_id' => $image['id'],
    229235          'image_file' => $image['file'],
    230         ));               
     236        ));
    231237       
    232         $replace = '@ <a href="'.get_absolute_root_url().$image['url'].'#comment-$1">$2</a> :';
     238        $replace = '@ <a href="'.$image['url'].'#comment-$1">$2</a> :';
    233239      }
    234240      else
     
    262268        $category['url'] = make_index_url(array(
    263269          'category' => $category,
    264         ));               
    265      
    266         $replace = '@ <a href="'.get_absolute_root_url().$category['url'].'#comment-$1">$2</a> :';
     270        ));
     271     
     272        $replace = '@ <a href="'.$category['url'].'#comment-$1">$2</a> :';
    267273      }
    268274      else
Note: See TracChangeset for help on using the changeset viewer.