Changeset 11612


Ignore:
Timestamp:
Jul 4, 2011, 1:04:50 AM (13 years ago)
Author:
icy
Message:

Fix Plugin URI (to support update option; thanks to ddtddt. Clean up the code

Location:
extensions/Icy_Picture_Modify
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Icy_Picture_Modify/icy_picture_modify.php

    r11610 r11612  
    3030global $template, $conf, $user, $page, $lang, $cache;
    3131
    32 // redirect users to the index page if 'image_id' isn't provided
     32// redirect users to the index page or category page if 'image_id' isn't provided
    3333if (!isset($_GET['image_id']))
    3434{
  • extensions/Icy_Picture_Modify/main.inc.php

    r11611 r11612  
    44Version: 1.0.0
    55Description: Allow users to modify users they uploaded
    6 Plugin URI: https://github.com/icy/icy_picture_modify
     6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=563
    77Author: icy
    88Author URI: http://metakyanh.sarovar.org/
     
    1818include_once(ICY_PICTURE_MODIFY_PATH.'include/functions_icy_picture_modify.inc.php');
    1919
     20# Hooks declaration
     21
    2022add_event_handler('loc_end_section_init', 'icy_picture_modify_section_init');
     23add_event_handler('loc_end_index', 'icy_picture_modify_index');
     24add_event_handler('loc_begin_picture', 'icy_picture_modify_loc_begin_picture');
     25
     26# Hooks definitions
     27
    2128function icy_picture_modify_section_init()
    2229{
     
    2936}
    3037
    31 add_event_handler('loc_end_index', 'icy_picture_modify_index');
    3238function icy_picture_modify_index()
    3339{
     
    4147
    4248// provide the link to modify the picture
    43 add_event_handler('loc_begin_picture', 'icy_picture_modify_loc_begin_picture');
     49// FIXME: Why use $page['image_id'] instead of $_GET['image_id']
    4450function icy_picture_modify_loc_begin_picture()
    4551{
Note: See TracChangeset for help on using the changeset viewer.