Ignore:
Timestamp:
Mar 10, 2013, 4:46:59 PM (11 years ago)
Author:
mistic100
Message:

fix translation errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/include/subscribe_to_comments.inc.php

    r21340 r21439  
    184184      if (pwg_db_num_rows($result))
    185185      {
     186        list($stc_id) = pwg_db_fetch_row($result);
    186187        $template->assign(array(
    187           'SUBSCRIBED_ALL_IMAGES' => true,
    188           'MANAGE_LINK' => make_stc_url('manage', $user['email']),
     188          'SUBSCRIBED' => 'all-images',
     189          'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)),
    189190          ));
    190191        $subscribed = true;
     
    210211        list($stc_id) = pwg_db_fetch_row($result);
    211212        $template->assign(array(
    212           'SUBSCRIBED_ALBUM_IMAGES' => true,
     213          'SUBSCRIBED' => 'album-images',
    213214          'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)),
    214215          ));
     
    235236        list($stc_id) = pwg_db_fetch_row($result);
    236237        $template->assign(array(
    237           'SUBSCRIBED_IMAGE' => true,
     238          'SUBSCRIBED' => 'image',
    238239          'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)),
    239240          ));
     
    298299  if ( !is_a_guest() and !empty($user['email']) )
    299300  {
     301    $element_url = make_index_url(array(
     302      'section' => 'categories',
     303      'category' => $page['category'],
     304      ));
     305         
    300306    $subscribed = false;
    301307   
     
    315321      if (pwg_db_num_rows($result))
    316322      {
     323        list($stc_id) = pwg_db_fetch_row($result);
    317324        $template->assign(array(
    318           'SUBSCRIBED_ALL_ALBUMS' => true,
    319           'MANAGE_LINK' => make_stc_url('manage', $user['email']),
     325          'SUBSCRIBED' => 'all-albums',
     326          'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)),
    320327          ));
    321328        $subscribed = true;
     
    340347      {
    341348        list($stc_id) = pwg_db_fetch_row($result);
    342         $element_url = make_index_url(array(
    343           'section' => 'categories',
    344           'category' => $page['category'],
    345           ));
    346        
    347349        $template->assign(array(
    348           'SUBSCRIBED_ALBUM' => true,
     350          'SUBSCRIBED' => 'album',
    349351          'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)),
    350352          ));
Note: See TracChangeset for help on using the changeset viewer.