Changeset 19830
- Timestamp:
- Jan 5, 2013, 11:24:17 AM (11 years ago)
- Location:
- extensions/Google2Piwigo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Google2Piwigo/main.inc.php
r17475 r19830 13 13 global $conf; 14 14 15 define('PICASA_WA_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');15 define('PICASA_WA_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 16 16 define('PICASA_WA_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); 17 define('PICASA_WA_CACHE', $conf['data_location'].'picasa_wa_cache/');17 define('PICASA_WA_CACHE', PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/'); 18 18 19 19 -
extensions/Google2Piwigo/maintain.inc.php
r17475 r19830 7 7 global $conf; 8 8 9 mkdir($conf['data_location'].'picasa_wa_cache/', 0755); 9 mkgetdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/', MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR); 10 } 11 12 function plugin_activate() 13 { 14 global $conf; 15 16 if (!file_exists(PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/')) 17 { 18 mkgetdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/', MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR); 19 } 10 20 } 11 21 … … 14 24 global $conf; 15 25 16 rrmdir( $conf['data_location'].'picasa_wa_cache/');26 rrmdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/'); 17 27 } 18 28
Note: See TracChangeset
for help on using the changeset viewer.