Ignore:
Timestamp:
Jun 20, 2011, 9:05:36 AM (13 years ago)
Author:
Mattias
Message:

Small changes in comment's, removed unnescessary code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Copyrights/image.php

    r11423 r11439  
    1616add_event_handler('loc_begin_picture', 'copyrights_set_prefilter_add_to_pic_info', 55 );
    1717
    18 // Another function of which i cant see the use ;-)
     18// 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!!!
    2022
    2123function copyrights_set_prefilter_add_to_pic_info()
     
    4244        </tr>
    4345        <tr id="datecreate">';
    44         // "Copyright" label is nog hardcoded - moet een @translate achter van de smarty, maar dat laat ik maar aan Johan over =P
    4546
    4647        return preg_replace($search, $replacement, $content);
     
    4950function copyrights_add_vars_to_template()
    5051{
    51 // For as far as i know i only need the $prefixtable, $page and $template
    52 //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) );
    5657
    5758        // Show block only on the photo page
    58         if ( !empty($page['image_id']) )   
     59        if ( !empty($page['image_id']) )
    5960        {
    6061                // 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.