Version 4.1.19

This commit is contained in:
Neo committed 2025-12-19 05:38:56 -08:00
1 parent 28bd025b35
commit 2bd5025018
2674 files changed
+233518 -77766

No files matched your search

@@ -2,10 +2,10 @@
/**
* @brief File Storage Extension: Media
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Social Suite
* @subpackage Board
* @package IPS Community Suite
* @subpackage Content
* @since 07 July 2015
* @version SVN_VERSION_NUMBER
*/
@@ -2,10 +2,10 @@
/**
* @brief File Storage Extension: Pages
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Social Suite
* @subpackage Board
* @package IPS Community Suite
* @subpackage Content
* @since 20 October 2014
* @version SVN_VERSION_NUMBER
*/
@@ -79,9 +79,17 @@ class _Pages
try
{
$count = \IPS\Db::i()->select( 'COUNT(*)', 'cms_pages', array( "page_js_css_objects LIKE '%" . \IPS\Db::i()->escape_string( $name ) . "%'") )->first();
foreach( \IPS\Db::i()->select( '*', 'cms_templates', array( "template_file_object LIKE '%" . \IPS\Db::i()->escape_string( $name ) . "%'") ) as $template )
{
$fileObject = \IPS\File::get( 'core_Theme', $template['template_file_object'] );
if( $fileObject->url == (string) $file )
{
return TRUE;
}
}
return $count ? TRUE : FALSE;
return FALSE;
}
catch( \IPS\Db\Exception $e )
{
@@ -2,10 +2,10 @@
/**
* @brief File Storage Extension: Records
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Social Suite
* @subpackage Board
* @package IPS Community Suite
* @subpackage Content
* @since 11 April 2014
* @version SVN_VERSION_NUMBER
*/
@@ -41,17 +41,17 @@ class _Records
foreach( \IPS\cms\Databases::databases() as $id => $db )
{
$where = array( array( 'record_image IS NOT NULL' ) );
$where = array( 'record_image IS NOT NULL' );
if ( isset( $fields[ $id ] ) )
{
foreach( $fields[ $id ] as $field_id )
{
$where[] = array( 'field_' . $field_id . ' IS NOT NULL' );
$where[] = 'field_' . $field_id . ' IS NOT NULL';
}
}
$count += \IPS\Db::i()->select( 'COUNT(*)', 'cms_custom_database_' . $id, $where )->first();
$count += \IPS\Db::i()->select( 'COUNT(*)', 'cms_custom_database_' . $id, implode( ' OR ', $where ) )->first();
}
return $count;