Ignore:
Timestamp:
Mar 6, 2013, 1:54:04 PM (11 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.