Changeset 11439 for extensions/Copyrights/image.php
- Timestamp:
- Jun 20, 2011, 9:05:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/image.php
r11423 r11439 16 16 add_event_handler('loc_begin_picture', 'copyrights_set_prefilter_add_to_pic_info', 55 ); 17 17 18 // Another function of which i cant see the use ;-)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!!! 20 22 21 23 function copyrights_set_prefilter_add_to_pic_info() … … 42 44 </tr> 43 45 <tr id="datecreate">'; 44 // "Copyright" label is nog hardcoded - moet een @translate achter van de smarty, maar dat laat ik maar aan Johan over =P45 46 46 47 return preg_replace($search, $replacement, $content); … … 49 50 function copyrights_add_vars_to_template() 50 51 { 51 // For as far as i know i only need the $prefixtable, $page and $template52 //global $conf, $page, $template, $tab, $cit, $nbr, $prefixeTable;53 global $page, $template, $prefixeTable;54 //load_language('plugin.lang', ADDINFO_PATH);55 //load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );52 // For as far as i know i only need the $prefixtable, $page and $template 53 //global $conf, $page, $template, $tab, $cit, $nbr, $prefixeTable; 54 global $page, $template, $prefixeTable; 55 //load_language('plugin.lang', ADDINFO_PATH); 56 //load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) ); 56 57 57 58 // Show block only on the photo page 58 if ( !empty($page['image_id']) ) 59 if ( !empty($page['image_id']) ) 59 60 { 60 61 // Get the copyright name and url (FROM cr_admin) that belongs to the current media_item (FROM cr_media)
Note: See TracChangeset
for help on using the changeset viewer.