36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* @brief Upgrader: Custom Upgrade Options
|
|
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
|
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
|
* @license http://www.invisionpower.com/legal/standards/
|
|
* @package IPS Social Suite
|
|
* @since 26 Oct 2015
|
|
* @version SVN_VERSION_NUMBER
|
|
*/
|
|
|
|
$options = array();
|
|
|
|
/* Check utilitiesMenu */
|
|
try
|
|
{
|
|
$affectedThemes = array();
|
|
|
|
foreach( \IPS\Db::i()->select( '*', 'core_theme_templates', array( array( 'template_set_id > 0 and template_name=? and template_group=? and template_app=? and template_location=?', 'globalTemplate', 'global', 'core', 'front' ) ) ) as $template )
|
|
{
|
|
if ( mb_stristr( $template['template_content'], '{template="utilitiesMenu"' ) )
|
|
{
|
|
$affectedThemes[] = $template['template_set_id'];
|
|
}
|
|
}
|
|
|
|
if ( count( $affectedThemes ) )
|
|
{
|
|
$options[] = new \IPS\Helpers\Form\Radio( '101000_globalTemplate_revert', 'no', TRUE, array( 'options' => array( 'yes' => '101000_yes', 'no' => '101000_no' ) ) );
|
|
}
|
|
}
|
|
catch( \Exception $ex ) { }
|
|
|
|
|
|
|