Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+24 -2
View File
@@ -19,6 +19,7 @@ use IPS\Content\Search\Index;
use IPS\Data\Store;
use IPS\DateTime;
use IPS\Db;
use IPS\Dispatcher;
use IPS\Http\Url;
use IPS\Lang;
use IPS\Log;
@@ -453,6 +454,26 @@ class Application extends SystemApplication
return $blocks;
}
/**
* Can manage the widgets
*
* @param Member|null $member Member we are checking against or NULL for currently logged on user
* @return boolean
*/
public function canManageWidgets( Member $member=NULL ): bool
{
/* Are we viewing an older version of a page? */
if( Dispatcher::checkLocation( 'front', 'cms', 'pages', 'page' ) )
{
if( empty( Request::i()->do ) and isset( Request::i()->version ) )
{
return false;
}
}
return parent::canManageWidgets( $member );
}
/**
* Developer sync items
*
@@ -521,7 +542,8 @@ class Application extends SystemApplication
Lang::saveCustom( 'cms', "content_db_lang_sl_" . $database->id . '_pl', 'Articles' );
Lang::saveCustom( 'cms', "digest_area_cms_records" . $database->id, "Articles" );
Lang::saveCustom( 'cms', "cms_records" . $database->id . '_pl', 'Article' );
Lang::saveCustom( 'cms', 'cms_page_1', 'Articles' );
try
{
Databases::createDatabase( $database );
@@ -650,7 +672,7 @@ HTML;
);
$area = Area::create( 'col1', $defaultWidgets );
$page->saveArea( $area );
$page->saveArea( $area, false );
/* Add block container (custom)*/
$container = new Container;