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

+21 -3
View File
@@ -73,7 +73,9 @@ spl_autoload_register( function( $class )
'last_review_by' => 'record_last_review_by',
'last_review_name' => 'record_last_review_name',
'updated' => 'record_last_comment',
'meta_data' => 'record_meta_data'
'meta_data' => 'record_meta_data',
'author_name' => 'record_author_name',
'is_anon' => 'record_is_anon',
);
public static \$pagePath;
}
@@ -122,11 +124,22 @@ EOF;
if ( mb_substr( $class, 0, 18 ) === 'IPS\cms\Categories' and \is_numeric( mb_substr( $class, 18, 1 ) ) )
{
$databaseId = \intval( mb_substr( $class, 18 ) );
$databases = \IPS\cms\Databases::databases();
if ( ! isset( $databases[ $databaseId ] ) )
{
return false;
}
$dbObject = $databases[ $databaseId ];
$data = <<<EOF
namespace IPS\cms;
class Categories{$databaseId} extends Categories
{
{
use \IPS\Node\Statistics;
protected static \$multitons = array();
protected static \$multitonMap = array();
public static \$customDatabaseId = $databaseId;
@@ -134,6 +147,11 @@ EOF;
protected static \$containerIds = NULL;
public static \$modPerm = 'cms{$databaseId}';
public static \$permType = 'categories_{$databaseId}';
public static function fullyQualifiedType()
{
return '{$dbObject->_title} ' . \IPS\Member::loggedIn()->language()->addToStack( static::\$nodeTitle . '_sg' );
}
}
EOF;