Changeset 32420 for extensions/title/initadmin.php
- Timestamp:
- Jan 19, 2021, 10:59:19 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/title/initadmin.php
r32302 r32420 3 3 // | Title plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 24 24 25 25 //Add link menu 26 add_event_handler('get_admin_plugin_menu_links', 'title_admin_menu');26 /*add_event_handler('get_admin_plugin_menu_links', 'title_admin_menu'); 27 27 function title_admin_menu($menu){ 28 28 $menu[] = array( … … 32 32 return $menu; 33 33 } 34 34 */ 35 35 36 36 //add prefiltre photo … … 44 44 45 45 function titlePadminfT($content, &$smarty){ 46 $search = '#< p style="margin:40px 0 0 0">#';46 $search = '#<input type="hidden" name="pwg_token"#'; 47 47 $replacement = ' 48 48 <p> … … 52 52 </p> 53 53 54 < p style="margin:40px 0 0 0">';54 <input type="hidden" name="pwg_token"'; 55 55 56 56 return preg_replace($search, $replacement, $content);
Note: See TracChangeset
for help on using the changeset viewer.