Changeset 19537


Ignore:
Timestamp:
Dec 23, 2012, 5:10:09 PM (8 years ago)
Author:
mistic100
Message:

wrong constant !

Location:
extensions/flickr2piwigo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/flickr2piwigo/admin/import.php

    r18911 r19537  
    44set_time_limit(600);
    55
    6 include_once(PICASA_WA_PATH . 'include/functions.inc.php');
     6include_once(FLICKR_PATH . 'include/functions.inc.php');
    77
    88// check API parameters and connect to flickr
  • extensions/flickr2piwigo/main.inc.php

    r17476 r19537  
    1818
    1919
    20 add_event_handler('get_admin_plugin_menu_links', 'flickr_admin_menu');
     20if (defined('IN_ADMIN'))
     21{
     22  add_event_handler('get_admin_plugin_menu_links', 'flickr_admin_menu');
    2123
    22 function flickr_admin_menu($menu)
    23 {
    24   array_push($menu, array(
    25     'NAME' => 'Flickr2Piwigo',
    26     'URL' => FLICKR_ADMIN,
    27   ));
    28   return $menu;
     24  function flickr_admin_menu($menu)
     25  {
     26    array_push($menu, array(
     27      'NAME' => 'Flickr2Piwigo',
     28      'URL' => FLICKR_ADMIN,
     29    ));
     30    return $menu;
     31  }
    2932}
    3033
Note: See TracChangeset for help on using the changeset viewer.