Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Upgrader: Applications
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 20 May 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS\core\modules\setup\upgrade;
|
||||
@@ -60,6 +59,11 @@ class _applications extends \IPS\Dispatcher\Controller
|
||||
foreach( \IPS\Application::applications() as $app => $data )
|
||||
{
|
||||
$path = \IPS\ROOT_PATH . '/applications/' . $app;
|
||||
|
||||
if ( $app == 'chat' )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Skip incomplete apps */
|
||||
if ( ! is_dir( $path . '/data' ) )
|
||||
@@ -167,6 +171,11 @@ class _applications extends \IPS\Dispatcher\Controller
|
||||
$coreVersion = array_key_exists( 'core', $_SESSION['apps'] ) ? \IPS\Application::getAvailableVersion( 'core' ) : \IPS\Application::load( 'core' )->long_version;
|
||||
foreach ( \IPS\Application::$ipsApps as $key )
|
||||
{
|
||||
if ( $key == 'chat' )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
$appVersion = array_key_exists( $key, $_SESSION['apps'] ) ? \IPS\Application::getAvailableVersion( $key ) : \IPS\Application::load( $key )->long_version;
|
||||
@@ -198,6 +207,8 @@ class _applications extends \IPS\Dispatcher\Controller
|
||||
else
|
||||
{
|
||||
$form = \IPS\Theme::i()->getTemplate( 'forms' )->noapps();
|
||||
|
||||
\IPS\core\Setup\Upgrade::setUpgradingFlag( FALSE );
|
||||
}
|
||||
|
||||
\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack('applications');
|
||||
|
||||
Reference in new issue
Block a user