Skip to content
Snippets Groups Projects
Commit 83017326 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V0.3: Fix PHP 7.0 (continue instead of return used)

parent 4eb7a49e
Branches master
Tags V0.3
No related merge requests found
BASE=versioncompat BASE=versioncompat
PLUGINTYPE=vmcustom PLUGINTYPE=vmcustom
VERSION=0.2 VERSION=0.3
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html $(BASE)/ PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html $(BASE)/
......
File added
...@@ -43,7 +43,8 @@ class plgVmCustomVersionCompat extends vmCustomPlugin { ...@@ -43,7 +43,8 @@ class plgVmCustomVersionCompat extends vmCustomPlugin {
if (!JFolder::exists($path)) if (!JFolder::exists($path))
$path = JPATH_ROOT . DS . $path; $path = JPATH_ROOT . DS . $path;
if (!JFolder::exists($path)) continue; if (!JFolder::exists($path))
return;
$images = JFolder::files($path, '.png'); $images = JFolder::files($path, '.png');
return $images; return $images;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net/</authorUrl> <authorUrl>http://www.open-tools.net/</authorUrl>
<creationDate>2014-12-16</creationDate> <creationDate>2014-12-16</creationDate>
<copyright>2010 Daycounts.com, 2014 OpenTools.net</copyright> <copyright>2010 Daycounts.com, 2014 OpenTools.net</copyright>
<version>0.2</version> <version>0.3</version>
<description>Version compatibility custom field</description> <description>Version compatibility custom field</description>
<files> <files>
<filename plugin="versioncompat">versioncompat.php</filename> <filename plugin="versioncompat">versioncompat.php</filename>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment