Ignore:
Timestamp:
Aug 9, 2012, 10:48:01 PM (12 years ago)
Author:
mistic100
Message:

clean definition of USER_COLLEC_PUBLIC
missing one template var for themes compatibility

Location:
extensions/UserCollections/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/UserCollection.class.php

    r17178 r17519  
    292292      'PUBLIC' => (bool)$this->data['public'],
    293293      'DATE_CREATION' => format_date($this->data['date_creation'], true),
    294       'U_PUBLIC' => get_absolute_root_url().'collection/view/'.$this->data['public_id'],
     294      'U_PUBLIC' => USER_COLLEC_PUBLIC . 'view/'.$this->data['public_id'],
    295295      'IS_TEMP' =>  $this->data['name'] == 'temp',
    296296      );
  • extensions/UserCollections/include/collections.inc.php

    r17178 r17519  
    289289}
    290290
    291 $template->assign('USER_COLLEC_PATH', USER_COLLEC_PATH);
     291$template->assign(array(
     292  'USER_COLLEC_PATH' => USER_COLLEC_PATH,
     293  'USER_COLLEC_ABS_PATH' => realpath(USER_COLLEC_PATH).'/',
     294  ));
    292295
    293296
  • extensions/UserCollections/include/events.inc.php

    r17320 r17519  
    1515{
    1616  global $tokens, $page, $conf;
    17  
    18   define('USER_COLLEC_PUBLIC', make_index_url(array('section' => 'collections')) . '/');
    1917
    2018  if ($tokens[0] == 'collections')
     
    204202  $max = 6;
    205203 
    206   if (!defined('USER_COLLEC_PUBLIC')) define('USER_COLLEC_PUBLIC', make_index_url(array('section' => 'collections')) . '/');
    207  
    208204  global $template, $conf, $user, $UserCollection;
    209205  $menu = &$menu_ref_arr[0];
Note: See TracChangeset for help on using the changeset viewer.