33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-25 03:36:00 +00:00

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

View File

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