Ignore:
Timestamp:
Mar 6, 2013, 1:54:04 PM (12 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.5: replace functions mysql_* with pwg_db_* equivalent

switch version to "auto"

use the new $template->add_index_button function

Location:
extensions/piclens/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/admin/functions.inc.php

    r3645 r21238  
    5757
    5858$ext = array();
    59   while ($row = mysql_fetch_assoc($result))
     59  while ($row = pwg_db_fetch_assoc($result))
    6060  {
    6161    if (empty($row['tn_ext']))
  • extensions/piclens/admin/piclenswallconfig.php

    r8780 r21238  
    4343        if (!empty($result))
    4444        {
    45                 while ($row = mysql_fetch_assoc($result))
     45                while ($row = pwg_db_fetch_assoc($result))
    4646                        array_push($categories, $row);                 
    4747        }
     
    6767  $me->my_config['piclens_wall_nav'] = isset($_POST['piclens_wall_nav']);
    6868  $me->my_config['piclens_wall_cat_nav_replace'] = isset($_POST['categories_nav']) ?
    69                           array_map("mysql_escape_string", $_POST['categories_nav']) :
     69                          array_map("pwg_db_real_escape_string", $_POST['categories_nav']) :
    7070                          array();
    7171  $me->my_config['piclens_wall_specif'] =   $_POST['piclens_wall_specif'];
     
    124124if (!empty($result))
    125125{
    126         while ($row = mysql_fetch_assoc($result))
     126        while ($row = pwg_db_fetch_assoc($result))
    127127                array_push($categories, $row);
    128128}
     
    157157if (!empty($result))
    158158{
    159         while ($row = mysql_fetch_assoc($result))
     159        while ($row = pwg_db_fetch_assoc($result))
    160160                array_push($categories, $row);
    161161}
  • extensions/piclens/admin/rssfeed.php

    r18642 r21238  
    3535 
    3636  $included_file_types = isset($_POST['file_types']) ?
    37                           array_map("mysql_escape_string", $_POST['file_types']) :
     37                          array_map("pwg_db_real_escape_string", $_POST['file_types']) :
    3838                          array();
    3939  $me->my_config['included_file_types'] = $included_file_types;
Note: See TracChangeset for help on using the changeset viewer.