Ignore:
Timestamp:
Oct 1, 2010, 3:10:46 PM (14 years ago)
Author:
plg
Message:

feature 1896 added: fallback on contact email title defined in Piwigo core if not defined at plugin level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/classes/cf_plugin.class.php

    r7059 r7060  
    502502      $infos['cf_from_name'] = is_a_guest()?'':$user['username'];
    503503      $infos['cf_from_mail'] = $user['email'];
    504       $infos['cf_subject'] = l10n('title_send_mail');
     504
     505      $l10n_key = 'title_send_mail';
     506      $infos['cf_subject'] = l10n($l10n_key);
     507      if ($l10n_key == $infos['cf_subject']) {
     508        $infos['cf_subject'] = l10n('A comment on your site');
     509      }
    505510    }
    506511    return $infos;
Note: See TracChangeset for help on using the changeset viewer.