Changeset 21326


Ignore:
Timestamp:
03/07/13 18:18:19 (6 years ago)
Author:
mistic100
Message:

remove hard-coded version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/linked_pages/main.inc.php

    r17926 r21326  
    2020define('LINKEDPAGES_TABLE',   $prefixeTable . 'linked_pages'); 
    2121define('LINKEDPAGES_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . LINKEDPAGES_ID); 
    22 define('LINKEDPAGES_VERSION', '1.0.1'); 
     22define('LINKEDPAGES_VERSION', 'auto'); 
    2323 
    2424 
     
    5252   
    5353  if ( 
     54    LINKEDPAGES_VERSION == 'auto' or 
    5455    $pwg_loaded_plugins[LINKEDPAGES_ID]['version'] == 'auto' or 
    5556    version_compare($pwg_loaded_plugins[LINKEDPAGES_ID]['version'], LINKEDPAGES_VERSION, '<') 
     
    5960    linked_pages_install(); 
    6061     
    61     if ($pwg_loaded_plugins[LINKEDPAGES_ID]['version'] != 'auto') 
     62    if ( $pwg_loaded_plugins[LINKEDPAGES_ID]['version'] != 'auto' and LINKEDPAGES_VERSION != 'auto') 
    6263    { 
    6364      $query = ' 
Note: See TracChangeset for help on using the changeset viewer.