Ignore:
Timestamp:
Jul 9, 2011, 3:30:34 PM (13 years ago)
Author:
Mattias
Message:

Fixed bugs in modify.php, it works now, though it still looks awfull :-/
Added language for the error message in admin.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Copyrights/image.php

    r11656 r11675  
    11<?php
    2 /*
    3 This php file will insert the names of the copyrights into the images description,
    4 so you can see below the image what copyright it has.
    5 */
    62
    73// Add a prefilter
     
    3834function copyrights_add_image_vars_to_template()
    3935{
    40         // For as far as i know i only need the $prefixtable, $page and $template
    41         //global $conf, $page, $template, $tab, $cit, $nbr, $prefixeTable;
    4236        global $page, $template, $prefixeTable;
    43         //load_language('plugin.lang', ADDINFO_PATH);
    44         //load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );
    4537
    4638        // Show block only on the photo page
    4739        if ( !empty($page['image_id']) )
    4840        {
    49                 // Get the copyright name and url (FROM cr_admin) that belongs to the current media_item (FROM cr_media)
     41                // Get the copyright name, url and description that belongs to the current media_item
    5042                $query = '
    5143                  select name, url, descr
Note: See TracChangeset for help on using the changeset viewer.