Changeset 19842


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

some little fixes

Location:
extensions/skeleton
Files:
3 edited

Legend:

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

    r18858 r19842  
    5353 
    5454  // create a local directory 
    55   if ( file_exists(PWG_LOCAL_DIR) and !file_exists(PWG_LOCAL_DIR . 'skeleton/') )  
     55  if (!file_exists(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'skeleton/'))  
    5656  { 
    57     mkdir(PWG_LOCAL_DIR . 'skeleton/', 0755); 
     57    mkdir(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'skeleton/', 0755); 
    5858  } 
    5959 
  • extensions/skeleton/main.inc.php

    r18650 r19842  
    2727define('SKELETON_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . SKELETON_ID); 
    2828define('SKELETON_PUBLIC',  get_absolute_root_url() . make_index_url(array('section' => 'skeleton')) . '/'); 
    29 define('SKELETON_DIR',     PWG_LOCAL_DIR . 'skeleton/'); 
     29define('SKELETON_DIR',     PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'skeleton/'); 
    3030define('SKELETON_VERSION', 'auto'); 
    3131// this is automatically updated by PEM if you publish your plugin with SVN, otherwise you musn't forget to change it, as well as "Version" in the plugin header 
  • extensions/skeleton/maintain.inc.php

    r18050 r19842  
    5959   
    6060  // delete field 
    61   pwg_query('ALTER `'. IMAGES_TABLE .'` DROP "skeleton";'); 
     61  pwg_query('ALTER TABLE `'. IMAGES_TABLE .'` DROP `skeleton`;'); 
    6262   
    6363  // delete local folder 
    64   $dir = PWG_LOCAL_DIR . 'skeleton/'; 
     64  $dir = PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'skeleton/'; 
    6565  foreach (scandir($dir) as $file) 
    6666  { 
Note: See TracChangeset for help on using the changeset viewer.