Originally Posted by
pegasus
You must have made the previous edit incorrectly. For the conditions required to trigger the error above, you would have received a fatal error already in the 'of' method that was modified. It seems like you replaced the entire method, but you should have only replaced the quoted lines from the method.
I admit to attempting with a } removed near the end, though that was only because after inputting the new code the importer still reports the same error.
This is the original content of vault/core/controller/import/handle/dependency/vw.php
Code:
class vw_Import_Handle_Dependency_Controller
{
protected $dependency;
public function set_dependency($dependency)
{
if ($dependency != $this->dependency)
{
$this->dependency = $dependency;
}
}
public function of($classname)
{
$of = vw_Hard_Core::controller('Import/Handle')->create('Dependency/' . $classname, 0, $this->dependency);
$of->set_dependency($this->dependency);
return $of;
}
}
This is how it looks after the edit:
Code:
class vw_Import_Handle_Dependency_Controller
{
protected $dependency;
public function set_dependency($dependency)
{
if ($dependency != $this->dependency)
{
$this->dependency = $dependency;
}
}
public function of($classname, $key = '')
{
if ($key === '')
{
$key = 'import';
}
$of = vw_Hard_Core::controller('Import/Handle')->create('Dependency/' . $classname, $key, $this->dependency);
return $of;
}
}
Bookmarks