Ignore:
Timestamp:
Jul 2, 2011, 1:02:53 PM (13 years ago)
Author:
mistic100
Message:

little change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/Back2Front.php

    r11219 r11599  
    152152      if (!picture_exists($_POST['b2f_front_id']))
    153153      {
    154         array_push($page['errors'], l10n_args(get_l10n_args('Unknown id %d for frontside picture', $_POST['b2f_front_id'])));
     154        array_push(
     155          $page['errors'],
     156          sprintf(
     157            l10n('Unknown id %d for frontside picture'),
     158            $_POST['b2f_front_id']
     159            )
     160          );
    155161      }
    156162      /* verso same as recto  */
     
    164170          $recto_current_verso['id'] = $all_recto_verso[$_POST['b2f_front_id']];
    165171          $recto_current_verso['link'] = get_root_url().'admin.php?page=picture_modify&image_id='.$recto_current_verso['id'];
    166           array_push($page['errors'],
    167             l10n_args(get_l10n_args('The picture n°%d has already a backside : %s',
    168               array($_POST['b2f_front_id'], '<a href="'.$recto_current_verso['link'].'">'.$recto_current_verso['id'].'</a>')
    169             ))
    170           );
     172          array_push(
     173            $page['errors'],
     174            sprintf(
     175              l10n('The picture n°%d has already a backside : %s'),
     176              $_POST['b2f_front_id'],
     177              '<a href="'.$recto_current_verso['link'].'">'.$recto_current_verso['id'].'</a>'
     178              )
     179            );
    171180      }
    172181      /* recto is already a verso */
     
    175184          $recto_is_verso['id'] = $_POST['b2f_front_id'];
    176185          $recto_is_verso['link'] = get_root_url().'admin.php?page=picture_modify&amp;image_id='.$recto_is_verso['id'];
    177           array_push($page['errors'], l10n_args(get_l10n_args('The picture n°%s is already a backside', '<a href="'.$recto_is_verso['link'].'">'.$recto_is_verso['id'].'</a>')));
     186          array_push(
     187            $page['errors'],
     188            sprintf(
     189              l10n('The picture n°%s is already a backside'),
     190              '<a href="'.$recto_is_verso['link'].'">'.$recto_is_verso['id'].'</a>'
     191              )
     192            );
    178193      }
    179194      /* everything is fine */
Note: See TracChangeset for help on using the changeset viewer.