Changeset 32070 for extensions/title


Ignore:
Timestamp:
Apr 3, 2020, 7:41:48 PM (5 years ago)
Author:
ddtddt
Message:

[Title] change menu function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/title/initadmin.php

    r31795 r32070  
    33// | Title plugin for piwigo                                               |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2016 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    2525//Add link menu
    2626add_event_handler('get_admin_plugin_menu_links', 'title_admin_menu');
    27 function title_admin_menu($menu)
    28 {
    29   array_push($menu, array(
    30         'NAME' => l10n('Page title'),
    31     'URL' => get_admin_plugin_menu_link(TITLE_PATH . 'admin.php')));
     27function title_admin_menu($menu){
     28  $menu[] = array(
     29    'NAME' => l10n('Page title'),
     30    'URL' => TITLE_ADMIN,
     31  );
    3232  return $menu;
    3333}
Note: See TracChangeset for help on using the changeset viewer.