Changeset 17317


Ignore:
Timestamp:
08/02/12 20:11:02 (7 years ago)
Author:
mistic100
Message:

compatible with question_mark_in_urls=false

Location:
extensions/GuestBook
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/include/guestbook.inc.php

    r16347 r17317  
    232232    if ($conf['guestbook']['activate_rating']) 
    233233    { 
    234       $tpl_comment['STARS'] = get_stars($row['rate'], GUESTBOOK_PATH .'template/jquery.raty/'); 
     234      $tpl_comment['STARS'] = get_stars($row['rate'], get_root_url().GUESTBOOK_PATH .'template/jquery.raty/'); 
    235235    } 
    236236       
  • extensions/GuestBook/main.inc.php

    r16347 r17317  
    1616define('GUESTBOOK_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 
    1717define('GUESTBOOK_TABLE' , $prefixeTable . 'guestbook'); 
    18 define('GUESTBOOK_URL', make_index_url(array('section' => 'guestbook'))); 
    1918define('GUESTBOOK_ADMIN', get_root_url().'admin.php?page=plugin-' . basename(dirname(__FILE__))); 
    2019 
     
    4948{ 
    5049  $menu = &$menu_ref_arr[0]; 
     50   
     51  define('GUESTBOOK_URL', make_index_url(array('section' => 'guestbook'))); 
    5152   
    5253  if ( ($block = $menu->get_block('mbMenu')) != null ) 
  • extensions/GuestBook/template/guestbook.tpl

    r16347 r17317  
    55  {footer_script} 
    66  jQuery("#comment_rate").raty({ldelim} 
    7     path: "{$GUESTBOOK_PATH}template/jquery.raty/", 
     7    path: "{$ROOT_URL}{$GUESTBOOK_PATH}template/jquery.raty/", 
    88    half: true 
    99  }); 
Note: See TracChangeset for help on using the changeset viewer.