fix: Notice: Only variables should be passed by reference in \administrator\components\com_jedchecker\libraries\rules\xmlupdateserver.php on line 125

This commit is contained in:
Daniel Dimitrov 2017-01-23 14:40:34 +01:00
parent 9994008d61
commit 4c2308492c
1 changed files with 6 additions and 5 deletions

View File

@ -117,12 +117,13 @@ class JedcheckerRulesXMLUpdateServer extends JEDcheckerRule
// Check if this is an XML and an extension manifest
if ($xml && ($xml->getName() == 'install' || $xml->getName() == 'extension'))
{
{
$directories = explode('/', substr($file, 0, strrpos( $file, '/')));
$XMLFiles[] = array(
'type' => (string) $xml->attributes()->type,
'filepath' => $file,
'directoryPath' => substr($file, 0, strrpos( $file, '/')),
'directory' => trim(end(explode('/', substr($file, 0, strrpos( $file, '/')))))
'type' => (string) $xml->attributes()->type,
'filepath' => $file,
'directoryPath' => substr($file, 0, strrpos( $file, '/')),
'directory' => trim(end($directories))
);
if ($xml->attributes()->type == 'component')