Ignore:
Timestamp:
Jan 4, 2013, 12:31:23 AM (12 years ago)
Author:
julien1311
Message:

some bug fixes/improvements
still buggy

File:
1 edited

Legend:

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

    r19676 r19775  
    33
    44function plugin_install() {
    5         include(dirname(__FILE__).'/install/config_default.inc.php');
     5        include_once(dirname(__FILE__).'/install/config_default.inc.php');
     6        include_once(dirname(__FILE__).'/install/functions.inc.php');
    67
    78        $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("file_uploader" ,"'.pwg_db_real_escape_string(serialize($config_default)).'", "File Uploader plugin parameters");';
    89        pwg_query($query);
     10       
     11        file_uploader_folder($file_uploader_galleries_folder, $file_uploader_galleries_dir);
    912}
    1013
    1114function plugin_activate() {
    12 
     15        include_once(dirname(__FILE__).'/install/config_default.inc.php');
     16        include_once(dirname(__FILE__).'/install/functions.inc.php');
     17       
     18        file_uploader_folder($file_uploader_galleries_folder, $file_uploader_galleries_dir);
    1319}
    1420
Note: See TracChangeset for help on using the changeset viewer.