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,9 +2,10 @@
/**
* @brief Support Pages in sitemaps
* @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
* @package IPS Community Suite
* @subpackage Content
* @since 1 April 2015
* @version SVN_VERSION_NUMBER
*/
@@ -28,7 +29,7 @@ class _Pages
*/
public $recommendedSettings = array(
'sitemap_pages_count' => -1,
'sitemap_pages_priority' => -1
'sitemap_pages_priority' => 1
);
/**
@@ -86,6 +87,7 @@ class _Pages
$count = 0;
$member = new \IPS\Member;
$permissionCheck = 'view';
$entries = array();
$exploded = explode( '_', $filename );
$block = (int) array_pop( $exploded );
@@ -101,7 +103,7 @@ class _Pages
$where = array( array( '(' . \IPS\Db::i()->findInSet( 'perm_' . $class::$permissionMap[ $permissionCheck ], $member->groups ) . ' OR ' . 'perm_' . $class::$permissionMap[ $permissionCheck ] . '=? )', '*' ) );
$select = \IPS\Db::i()->select( '*', $class::$databaseTable, NULL, 'page_id ASC', array( $offset, $limit ) )
$select = \IPS\Db::i()->select( '*', $class::$databaseTable, $where, 'page_id ASC', array( $offset, $limit ) )
->join( 'core_permission_index', array( "core_permission_index.app=? AND core_permission_index.perm_type=? AND core_permission_index.perm_type_id=" . $class::$databaseTable . "." . $class::$databasePrefix . $class::$databaseColumnId, $class::$permApp, $class::$permType ) );
foreach( $select as $row )
@@ -113,9 +115,8 @@ class _Pages
if ( $priority !== -1 )
{
$data['priority'] = $priority;
$entries[] = $data;
}
$entries[] = $data;
}
$sitemap->buildSitemapFile( $filename, $entries );