Code: Select all
PHP Notice: Trying to get property 'textContent' of non-object in /system/modification/admin/controller/extension/modification.php on line 143
Code: Select all
// Log
$log[] = 'MOD: ' . $dom->getElementsByTagName('name')->item(0)->textContent;
$files = $dom->getElementsByTagName('modification')->item(0)->getElementsByTagName('file');
foreach ($files as $file) {
$operations = $file->getElementsByTagName('operation');
$path = '';
// Get the full path of the files that are going to be used for modification
if (substr($file->getAttribute('path'), 0, 7) == 'catalog') {
$path = DIR_CATALOG . str_replace('../', '', substr($file->getAttribute('path'), 8));
}