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

compatible with 'question_mark_in_url'=false, use W3C valid syntax

File:
1 edited

Legend:

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

    r19363 r19396  
    2929    );
    3030 
    31   // position for index
    32   if (script_basename() == 'index')
     31  // urls and position
     32  if (script_basename() == 'picture')
     33  {
     34    $template->assign('GPLUS1_URL', get_absolute_root_url().ltrim(duplicate_picture_url(), './'));
     35  }
     36  else if (script_basename() == 'index')
    3337  {
    3438    $conf['GooglePlusOne']['position'] = 'index';
     39    $template->assign('GPLUS1_URL', get_absolute_root_url().ltrim(duplicate_index_url(array(), array('start')), './'));
     40  }
     41  else
     42  {
     43    return;
    3544  }
    3645 
Note: See TracChangeset for help on using the changeset viewer.