Ignore:
Timestamp:
Jan 5, 2013, 11:24:17 AM (8 years ago)
Author:
mistic100
Message:

make sure temp folder is created on the right place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Google2Piwigo/maintain.inc.php

    r17475 r19830  
    77  global $conf;
    88 
    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
     12function 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  }
    1020}
    1121
     
    1424  global $conf;
    1525 
    16   rrmdir($conf['data_location'].'picasa_wa_cache/');
     26  rrmdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'picasa_wa_cache/');
    1727}
    1828
Note: See TracChangeset for help on using the changeset viewer.