Changeset 19395


Ignore:
Timestamp:
Dec 11, 2012, 5:14:39 PM (11 years ago)
Author:
mistic100
Message:

compatible with 'question_mark_in_url'=false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/TweetThis/main.inc.php

    r19362 r19395  
    2828    );
    2929 
    30   // urls and position for index
     30  // urls and position
    3131  if (script_basename() == 'picture')
    3232  {
    33     $template->assign('TWEET_URL', get_absolute_root_url().duplicate_picture_url());
     33    $template->assign('TWEET_URL', get_absolute_root_url().ltrim(duplicate_picture_url(), './'));
    3434  }
    3535  else if (script_basename() == 'index')
    3636  {
    3737    $conf['TweetThis']['position'] = 'index';
    38     $template->assign('TWEET_URL', get_absolute_root_url().duplicate_index_url());
     38    $template->assign('TWEET_URL', get_absolute_root_url().ltrim(duplicate_index_url(array(), array('start')), './'));
     39  }
     40  else
     41  {
     42    return;
    3943  }
    4044 
Note: See TracChangeset for help on using the changeset viewer.