Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -102,7 +102,7 @@ abstract class _Widget
|
||||
|
||||
$this->init();
|
||||
|
||||
$this->uniqueKey = ( empty( $uniqueKey ) ) ? ( $this->key ?: uniqid() ) : $uniqueKey;
|
||||
$this->uniqueKey = ( empty( $uniqueKey ) ) ? ( $this->key ?: mt_rand() ) : $uniqueKey;
|
||||
|
||||
if ( !$this->hasConfiguration() )
|
||||
{
|
||||
@@ -202,7 +202,6 @@ abstract class _Widget
|
||||
/**
|
||||
* Get Template Location
|
||||
* Returns the template app/location/group/name params
|
||||
|
||||
* @return array
|
||||
*/
|
||||
public function getTemplateLocation()
|
||||
@@ -228,9 +227,11 @@ abstract class _Widget
|
||||
public function output()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$args['orientation'] = $this->orientation;
|
||||
$args[] = $this->orientation;
|
||||
|
||||
$output = call_user_func_array( $this->template, $args );
|
||||
$template = $this->template;
|
||||
|
||||
$output = $template( ...$args );
|
||||
|
||||
return $output;
|
||||
}
|
||||
@@ -683,10 +684,6 @@ abstract class _Widget
|
||||
}
|
||||
|
||||
$return = array();
|
||||
if ( $app->directory != 'core' and isset( \IPS\Data\Store::i()->widgets['core']['announcements'] ) )
|
||||
{
|
||||
$return[] = \IPS\Data\Store::i()->widgets['core']['announcements'];
|
||||
}
|
||||
if ( isset( \IPS\Data\Store::i()->widgets[ $app->directory ] ) )
|
||||
{
|
||||
foreach ( \IPS\Data\Store::i()->widgets[ $app->directory ] as $widget )
|
||||
|
||||
Reference in new issue
Block a user