Ignore:
Timestamp:
Apr 12, 2011, 7:45:22 PM (13 years ago)
Author:
mistic100
Message:

new version 1.4, new plugin for Charlies Content, NConvert updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PHP_Optimisateur/plugins/watermark/setup.php

    r9276 r10337  
    11<?php
     2load_plugin_lang('watermark');
     3
    24switch ($PLUGIN_ACTION) {
    35        // Affichage simple de la configuration
    46        case 'read_config':
    5                 load_plugin_lang('watermark');
    6                 $PAGE_CONTENT[0] .= '
     7                $PAGE['content'] .= '
    78                <table>
    89                        <tr>
     
    1213                        <tr>
    1314                                <td>'.l10n('watermark.waterALPHA').' :</td>
    14                                 <td>'.$plugin_config['waterALPHA'].'%</td>
     15                                <td>'.$plugin_config['waterALPHA'].' %</td>
    1516                        </tr>
    1617                </table>';
     
    2122                if (!is_decimal($_POST['Plugins']['watermark']['waterALPHA'])) {
    2223                        $_POST['Plugins']['watermark']['waterALPHA'] = 80;
    23                         $Errors['ErrorConfig'] = 'notice';
     24                        $ERRORS['conf'][] = array(l10n('watermark.waterALPHA'), 'must_be_integer');
    2425                }
    2526               
     
    2829        // Formulaire d'édition
    2930        case 'edit_config':
    30                 load_plugin_lang('watermark');
    31                 $PAGE_CONTENT[0] .= '
     31                $PAGE['content'] .= '
    3232                <table>
    3333                        <tr>
Note: See TracChangeset for help on using the changeset viewer.