Changeset 19838


Ignore:
Timestamp:
01/05/13 14:31:06 (7 years ago)
Author:
mistic100
Message:

make sure words file is created on the right place

Location:
extensions/comments_blacklist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/comments_blacklist/include/install.inc.php

    r18369 r19838  
    1616  } 
    1717   
    18   if ( file_exists(PWG_LOCAL_DIR) and !file_exists(PWG_LOCAL_DIR . 'comments_blacklist.txt') )  
     18  if (!file_exists(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt'))  
    1919  { 
    20     touch(PWG_LOCAL_DIR . 'comments_blacklist.txt'); 
     20    touch(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt'); 
    2121  } 
    2222 
  • extensions/comments_blacklist/main.inc.php

    r18651 r19838  
    1414define('COMM_BLACKLIST_PATH' ,   PHPWG_PLUGINS_PATH . COMM_BLACKLIST_ID . '/'); 
    1515define('COMM_BLACKLIST_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . COMM_BLACKLIST_ID); 
    16 define('COMM_BLACKLIST_FILE',    PWG_LOCAL_DIR . 'comments_blacklist.txt'); 
     16define('COMM_BLACKLIST_FILE',    PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt'); 
    1717define('COMM_BLACKLIST_VERSION', 'auto'); 
    1818 
  • extensions/comments_blacklist/maintain.inc.php

    r18369 r19838  
    2222function plugin_uninstall()  
    2323{ 
    24   @unlink(PWG_LOCAL_DIR . 'comments_blacklist.txt'); 
     24  @unlink(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt'); 
    2525} 
    2626 
Note: See TracChangeset for help on using the changeset viewer.