Changeset 11505 for extensions/Copyrights/image.php
- Timestamp:
- Jun 24, 2011, 10:14:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/image.php
r11439 r11505 18 18 // Change the variables used by the function that changes the template 19 19 add_event_handler('loc_begin_picture', 'copyrights_add_vars_to_template'); 20 21 // The big question is - WHY THIS WAY!!!22 20 23 21 function copyrights_set_prefilter_add_to_pic_info() … … 67 65 ;'; 68 66 $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 } 75 76 76 77 // Sending data to the template
Note: See TracChangeset
for help on using the changeset viewer.