Version 4.2.0

This commit is contained in:
Neo committed 2025-12-19 05:44:59 -08:00
1 parent 0dc2aee5ed
commit 96997ddd8e
2074 files changed
+125454 -55780

No files matched your search

+21
View File
@@ -8,6 +8,17 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
class cms_hook_FriendlyUrl extends _HOOK_CLASS_
{
/**
* Get FURL Definition
*
* @param bool $revert If TRUE, ignores all customisations and reloads from json
* @return array
*/
public static function furlDefinition( $revert=FALSE )
{
return array_merge( parent::furlDefinition( $revert ), array( 'content_page_path' => static::buildFurlDefinition( 'app=cms&module=pages&controller=page', 'app=cms&module=pages&controller=page', NULL, FALSE, NULL, FALSE, 'IPS\cms\Pages\Router' ) ) );
}
/**
* Create a friendly URL from a full URL, working out friendly URL data
*
@@ -41,6 +52,16 @@ class cms_hook_FriendlyUrl extends _HOOK_CLASS_
{
return $return;
}
/* The table may not yet exist if we're using the parser in an upgrade */
catch ( \Exception $e )
{
if( $e->getCode() == 1146 )
{
return $return;
}
throw $e;
}
}
/**