Ignore:
Timestamp:
Mar 28, 2010, 6:55:48 PM (14 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1 and fix some bugs
feature 1192, feature 1344

File:
1 edited

Legend:

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

    r3394 r5423  
    1212  --------------------------------------------------------------------------- */
    1313
    14 if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
     14if(!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
    1515
    16 define('ASTAT_DIR' , basename(dirname(__FILE__)));
    17 define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/');
     16if(!defined('ASTAT_DIR')) define('ASTAT_DIR' , basename(dirname(__FILE__)));
     17if(!defined('ASTAT_PATH')) define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/');
    1818
    1919//ini_set('error_reporting', E_ALL);
     
    4646load_language('plugin.lang', ASTAT_PATH);
    4747
    48 function plugin_install($plugin_id, $plugin_version, &$errors) 
     48function plugin_install($plugin_id, $plugin_version, &$errors)
    4949{
    5050  global $prefixeTable, $gpc_installed;
Note: See TracChangeset for help on using the changeset viewer.