Skip to content

Commit

Permalink
Update to version 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdesign committed Dec 14, 2021
1 parent ccdb7e9 commit 60ba9ad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<project name="junewsultra" default="dist" basedir=".">

<property name="VERSION" value="7.0"/>
<property name="VERSION" value="7.1"/>

<tstamp>
<format property="DATE" pattern="%d.%m.%Y" />
</tstamp>

<property name="juimage" value="4.3.5"/>
<property name="juimage" value="4.4"/>

<property name="build" value="build"/>
<property name="temp" value="temp"/>
Expand Down
4 changes: 2 additions & 2 deletions packages/mod_junewsultra/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function image($params, $junews, array $data = [])
$source_set = [];
$array = (array) $junews[ 'src_picture' ];

arsort($array);
//arsort($array);
foreach($array as $picture)
{
if($picture->picture && $picture->picture_w && $picture->picture_h)
Expand Down Expand Up @@ -250,7 +250,7 @@ public function image($params, $junews, array $data = [])
* @param $image
* @param array $junews
*
* @return string|array
* @return object|string
*
* @since 6.0
*/
Expand Down
10 changes: 3 additions & 7 deletions packages/mod_junewsultra/fields/multicategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class JFormFieldMultiCategories extends JFormFieldList
protected function getInput()
{
$html = [];
$attr = $this->element[ 'class' ] ? ' class="' . (string) $this->element[ 'class' ] . '"' : '';
$attr = $this->element[ 'class' ] ? ' class="' . $this->element[ 'class' ] . '"' : '';

if((string) $this->element[ 'readonly' ] === 'true' || (string) $this->element[ 'disabled' ] === 'true')
{
Expand All @@ -41,7 +41,7 @@ protected function getInput()

$attr .= $this->element[ 'size' ] ? ' size="' . (int) $this->element[ 'size' ] . '"' : '';
$attr .= $this->multiple ? ' multiple="multiple"' : '';
$attr .= $this->element[ 'onchange' ] ? ' onchange="' . (string) $this->element[ 'onchange' ] . '"' : '';
$attr .= $this->element[ 'onchange' ] ? ' onchange="' . $this->element[ 'onchange' ] . '"' : '';
$attr .= ' size="20"';

$options = $this->getOptions();
Expand Down Expand Up @@ -157,11 +157,7 @@ public function recursive_options($temp_options, $level, $parent)
{
if($option[ 2 ] == $parent)
{
$level_string = '';
for($i = 0; $i < $level; $i++)
{
$level_string .= '- - ';
}
$level_string = str_repeat('- - ', $level);
$this->options[] = HTMLHelper::_('select.option', $option[ 0 ], $level_string . $option[ 1 ]);
$this->recursive_options($temp_options, $level + 1, $option[ 0 ]);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/mod_junewsultra/helper/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function query($params, $junews)
* @param $params
* @param $junews
*
* @return array|bool|SimpleXMLElement[]
* @return array|SimpleXMLElement[]
*
* @since 6.0
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/mod_junewsultra/helper/youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function query($params, $junews)
* @param $params
* @param $junews
*
* @return array|bool|SimpleXMLElement[]
* @return array|SimpleXMLElement[]
*
* @since 6.0
*/
Expand Down

0 comments on commit 60ba9ad

Please sign in to comment.