Show
Ignore:
Timestamp:
09/05/08 01:33:40 (4 months ago)
Author:
MattRead
Message:

fix compat issues

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/hpm/trunk/habaripackages.php

    r884 r896  
    222222    public static function tempnam() 
    223223    { 
    224         return tempnam( HABARI_PATH . '/3rdparty/hpm', 'HPM-' ); 
     224        return tempnam( self::tempdir(), 'HPM-' ); 
    225225    } 
    226226     
     
    228228    { 
    229229        $tmp_dir = 'HPM-' . md5( UUID::get() ); 
    230         if ( is_writable( HABARI_PATH . "/3rdparty/hpm" ) ) { 
    231             $tmp_dir = HABARI_PATH . "/3rdparty/hpm/$tmp_dir"; 
    232         } 
    233         else { 
    234             $tmp_dir = sys_get_temp_dir() . "/$tmp_dir"; 
    235         } 
     230        $tmp_dir = HABARI_PATH . "/3rdparty/$tmp_dir"; 
    236231        mkdir( $tmp_dir, 0777 ); 
    237232        return $tmp_dir;