Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

@@ -12,6 +12,7 @@ namespace IPS\core\modules\admin\settings;
/* To prevent PHP errors (extending class does not exist) revealing path */
use Exception;
use InvalidArgumentException;
use IPS\Application;
use IPS\Content;
@@ -51,6 +52,7 @@ use function count;
use function defined;
use function intval;
use function is_array;
use function preg_match;
use const IPS\TEMP_DIRECTORY;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
@@ -193,6 +195,7 @@ class posting extends Controller
}, NULL, NULL, 'attachment_image_size' ) );
$form->add( new Number( 'max_internalembed_width', Settings::i()->max_internalembed_width, FALSE, array( 'unlimited' => 0 ), NULL, NULL, 'px', 'max_internalembed_width' ) );
$form->add( new Number( 'max_embeddedmedia_width', Settings::i()->max_embeddedmedia_width, FALSE, array( 'unlimited' => 0 ), NULL, NULL, 'px', 'max_embeddedmedia_width' ) );
$form->addHeader('posting_content');
if ( Login::registrationType() != 'disabled' )
@@ -925,6 +928,7 @@ class posting extends Controller
continue;
}
$isCustom = preg_match( "/^ipsCustom(Node|Mark|Extension)__/", $restriction );
if ( isset( $dependencies[ $restriction ] ) )
{
$firstLine = '';
@@ -936,6 +940,16 @@ class posting extends Controller
Member::loggedIn()->language()->words['editor_r__' . $restriction . '_desc'] = $firstLine . sprintf( Member::loggedIn()->language()->get( 'editor_r__dependency' ), Member::loggedIn()->language()->addToStack( 'editor_r__' . $dependencies[$restriction] ) );
}
else if ( !$isCustom )
{
try
{
/* Now make sure to put the _desc description in just in case so the form can use it */
$actualDesc = Member::loggedIn()->language()->get( "editor_r__" . $restriction . "__desc" );
Member::loggedIn()->language()->words["editor_r__" . $restriction . "_desc"] = $actualDesc;
}
catch ( UnderflowException ) {}
}
$dependents = [];
foreach ( $dependencies as $dependent => $dependency )