refactor(shop-coupon): migrate admin module to DI and release 0.266

This commit is contained in:
2026-02-14 00:05:23 +01:00
parent 46a60f3679
commit 3dad04f927
40 changed files with 1668 additions and 426 deletions

View File

@@ -136,6 +136,17 @@ if ( \S::get( 'a' ) == 'page' and \S::get( 'id' ) )
\S::set_session( 'page', $page );
}
if ( !is_array( $page ) or !(int)$page['id'] )
{
$page = \S::get_session( 'page' );
}
if ( !is_array( $page ) or !(int)$page['id'] )
{
$page = \front\factory\Pages::page_details();
\S::set_session( 'page', $page );
}
if ( \S::get( 'devel' ) )
$settings[ 'devel' ] = true;
@@ -350,4 +361,4 @@ if ( file_exists( 'plugins/special-actions-end.php' ) )
include 'plugins/special-actions-end.php';
echo $html;
?>
?>