Ignore:
Timestamp:
05/22/11 12:11:31 (9 years ago)
Author:
mistic100
Message:

code cleanup

Location:
extensions/Admin_Messages
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Admin_Messages/admin.php

    r9786 r10982  
    1818$tabsheet->add('new', l10n('AM_new_tab'), AM_ADMIN . '-new');                   // Ajouter un nouveau message 
    1919if ($page['tab'] == 'edit' AND isset($_GET['message_id'])) {                    // Editer le message 
    20         $tabsheet->add('edit', l10n('AM_edit_tab'), CR_ADMIN . '-edit&message_id=' . $_GET['message_id']); 
     20        $tabsheet->add('edit', l10n('AM_edit_tab'), AM_ADMIN . '-edit&message_id=' . $_GET['message_id']); 
    2121} 
    2222$tabsheet->add('config', l10n('Configuration'), AM_ADMIN . '-config');  // Configuration 
     
    2929// +-----------------------------------------------------------------------+ 
    3030$template->assign(array( 
    31         'AM_VERSION' => AM_NAME . ' ' . AM_VERSION, 
    3231        'AM_PATH' => AM_PATH, 
    3332        'AM_ADMIN' => AM_ADMIN, 
  • extensions/Admin_Messages/admin/config.php

    r9786 r10982  
    1111        ); 
    1212         
    13         pwg_query("UPDATE " . CONFIG_TABLE . " SET `value` = '" . serialize($user_config) . "' WHERE `param` = 'admin_messages';"); 
    14         $page['infos'][] = l10n('Information data registered in database'); 
     13  conf_update_param('admin_messages', serialize($user_config)); 
     14        array_push($page['infos'], l10n('Information data registered in database')); 
    1515} 
    1616 
  • extensions/Admin_Messages/admin/list.php

    r9786 r10982  
    1010                redirect(get_root_url() . 'admin.php#messages'); 
    1111        else 
    12                 $page['infos'][] = l10n('AM_message_deleted'); 
     12                array_push($page['infos'], l10n('AM_message_deleted')); 
    1313                 
    1414} 
  • extensions/Admin_Messages/admin/template/config.tpl

    r9786 r10982  
    11{combine_css path=$AM_PATH|@cat:'admin/template/style.css'} 
    22 
    3 <h2 class="version_title">{$AM_VERSION}</h2> 
     3<h2 class="version_title">Admin Messages</h2> 
    44 
    55<div class="titrePage"> 
  • extensions/Admin_Messages/admin/template/list.tpl

    r9786 r10982  
    11{combine_css path=$AM_PATH|@cat:'admin/template/style.css'} 
    22 
    3 <h2 class="version_title">{$AM_VERSION}</h2> 
     3<h2 class="version_title">Admin Messages</h2> 
    44 
    55<div class="titrePage"> 
  • extensions/Admin_Messages/admin/template/new.tpl

    r9967 r10982  
    22{include file='include/autosize.inc.tpl'} 
    33 
    4 <h2 class="version_title">{$AM_VERSION}</h2> 
     4<h2 class="version_title">Admin Messages</h2> 
    55 
    66<div class="titrePage"> 
  • extensions/Admin_Messages/main.inc.php

    r9967 r10982  
    22/* 
    33Plugin Name: Admin Messages 
    4 Version: 1.2 
     4Version: auto 
    55Description: Allows administrators to leave messages on the main admin page. 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=505 
     
    1919define('AM_PATH' , PHPWG_PLUGINS_PATH . AM_DIR . '/'); 
    2020define('AM_TABLE', $prefixeTable .'admin_messages'); 
    21 define('AM_NAME' , 'Admin Messages'); 
    22 define('AM_VERSION', '1.2'); 
    2321define('AM_ADMIN', get_root_url() . 'admin.php?page=plugin-' . AM_DIR); 
    2422 
     
    3735function AM_admin_menu($menu) { 
    3836        array_push($menu, array( 
    39                 'NAME' => AM_NAME, 
     37                'NAME' => 'Admin Messages', 
    4038                'URL' => AM_ADMIN 
    4139        )); 
Note: See TracChangeset for help on using the changeset viewer.