Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

@@ -135,6 +135,8 @@ class _RssImport
try
{
$record = $recordClass::createFromForm( $values, $container );
$record->changeAuthor( $member, FALSE );
if ( ! $settings['record_open'] )
{
@@ -176,7 +176,7 @@ class _Databases
/* We only want nodes we can see, and that have actual content inside */
if( $node->url() !== NULL and $node->can( 'view', new \IPS\Member ) and ( $node->hasChildren() OR ( $node->show_records and $node->getContentItemCount() ) ) )
{
$data = array( 'url' => $node->url(), 'lastmod' => $node->getLastCommentTime() );
$data = array( 'url' => $node->url(), 'lastmod' => $node->getLastCommentTime( new \IPS\Member ) );
$priority = \intval( \IPS\Settings::i()->sitemap_databases_priority );
if ( $priority !== -1 )
@@ -41,7 +41,7 @@ class _Databases
{
if ( \IPS\Db::i()->checkForTable( 'cms_databases' ) )
{
foreach ( \IPS\Db::i()->select( '*', 'cms_databases') as $db )
foreach ( \IPS\Db::i()->select( '*', 'cms_databases' ) as $db )
{
/* The content router only returns databases linked to pages. In theory, you may have linked a database and then removed it,
so the method to remove all app content from the search index fails, so we need to account for that here: */
@@ -61,14 +61,14 @@ class _Databases
$tables = array();
try
{
$databaseTables = \IPS\Db::i()->query("SHOW TABLES LIKE '" . \IPS\Db::i()->prefix . "cms_custom_database_%'" )->fetch_assoc();
$databaseTables = \IPS\Db::i()->query( "SHOW TABLES LIKE '" . \IPS\Db::i()->prefix . "cms_custom_database_%'" )->fetch_assoc();
if ( $databaseTables )
{
foreach( $databaseTables as $row )
{
if( \is_array( $row ) )
{
$tables[] = array_pop($row);
$tables[] = array_pop( $row );
}
else
{
@@ -43,18 +43,6 @@ class _Widgets
{
}
/**
* Code to execute when other applications are uninstalled
*
* @param string $application Application directory
* @return void
* @deprecated This is here for backwards-compatibility - all new code should go in onOtherUninstall
*/
public function onOtherAppUninstall( $application )
{
return $this->onOtherUninstall( $application );
}
/**
* Code to execute when other applications or plugins are uninstalled
*