Version 5.0.0 beta 4
This commit is contained in:
1 parent
e86153356a
commit
2f24f9de48
276 files changed
+8614
-6044
No files matched your search
@@ -342,14 +342,14 @@ class Form
|
||||
* Add Message Row
|
||||
*
|
||||
* @param string $lang Language key or formatted string to display
|
||||
* @param string $css Custom CSS class(es) to apply
|
||||
* @param string|null $css Custom CSS class(es) to apply
|
||||
* @param bool $parse Set this to false if the language string passed is already formatted for display
|
||||
* @param string|null $_id HTML ID
|
||||
* @param string|null $after The key of element to insert after
|
||||
* @param string|null $tab The tab to insert onto
|
||||
* @return void
|
||||
*/
|
||||
public function addMessage( string $lang, string $css='', bool $parse=TRUE, string $_id=NULL, string $after=NULL, string $tab=NULL ) : void
|
||||
public function addMessage( string $lang, ?string $css='', bool $parse=TRUE, string $_id=NULL, string $after=NULL, string $tab=NULL ) : void
|
||||
{
|
||||
if ( !$_id )
|
||||
{
|
||||
@@ -361,7 +361,7 @@ class Form
|
||||
}
|
||||
|
||||
/* Place the input into the correct position */
|
||||
$this->_insert( Theme::i()->getTemplate( 'forms', 'core', 'global' )->message( $lang, $_id, $css, $parse ), NULL, $tab, $after );
|
||||
$this->_insert( Theme::i()->getTemplate( 'forms', 'core', 'global' )->message( $lang, $_id, ( $css ?? '' ), $parse ), NULL, $tab, $after );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user