Ignore:
Timestamp:
May 13, 2010, 12:06:29 PM (14 years ago)
Author:
patdenice
Message:

Upgrade work for 2.1.
Language keys have not been inserted yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/remote.php

    r4835 r6167  
    55include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    66include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     7include_once(PHPWG_ROOT_PATH.'admin/include/functions_plugins.inc.php');
    78
    89check_status(ACCESS_ADMINISTRATOR);
     
    1213  and count($_POST['autoupdate_ignore']) == 2)
    1314{
     15  // Add or remove plugin from ignore list
    1416  $ignore = unserialize($conf['autoupdate_ignore_list']);
    1517  $ignore = array_flip($ignore);
     
    4345else
    4446{
     47  // Check if gallery or plugins are up to date
    4548  load_language('plugin.lang', dirname(__FILE__).'/');
    4649  header('Content-Type: text/html; charset=UTF-8');
    4750
    48   include(dirname(__FILE__).'/class.inc.php');
    49   $autoupdate = new autoupdate();
    50 
    51   echo $autoupdate->check_version();
     51  include(AUTOUPDATE_PATH.'include/functions_remote.inc.php');
     52  echo autoupdate_check_version();
    5253}
    5354
Note: See TracChangeset for help on using the changeset viewer.