refactor(shop-coupon): migrate admin module to DI and release 0.266
This commit is contained in:
13
index.php
13
index.php
@@ -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;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user