Ignore:
Timestamp:
Jun 24, 2011, 10:14:33 PM (13 years ago)
Author:
Mattias
Message:
  • Some changes in image.php (pwg_db instead of mysql)
  • batch_single.php adds an extra <tr> between the author and the creation date
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Copyrights/image.php

    r11439 r11505  
    1818// Change the variables used by the function that changes the template
    1919add_event_handler('loc_begin_picture', 'copyrights_add_vars_to_template');
    20 
    21 // The big question is - WHY THIS WAY!!!
    2220
    2321function copyrights_set_prefilter_add_to_pic_info()
     
    6765                  ;';
    6866                $result = pwg_query($query);
    69                 $row = mysql_fetch_array($result);
    70                 //if(count($row) > 0)
    71                 //{
    72                         $name = $row['name'];
    73                         $url = $row['url'];
    74                 //}
     67                $row = pwg_db_fetch_row($result);
     68                if(count($row) > 0) {
     69                        $name = $row[0];
     70                        $url = $row[1];
     71                }
     72                else {
     73                        $name = '';
     74                        $url = '';
     75                }
    7576                       
    7677                // Sending data to the template
Note: See TracChangeset for help on using the changeset viewer.