Commit 6c7360d3 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix a warning at import time - no such thing as an Importer.



Revealed after we started exposing E_RECOVERABLE_ERRORs.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent d947aad3
......@@ -210,7 +210,7 @@ class LocalImporterTransport extends ImporterTransport {
private $relativepath;
private $zipfilename;
public function __construct(Importer $importer/* TODO: wtf is an Importer? */) {
public function __construct(PluginImport $importer) {
}
public function cleanup() {
......@@ -245,7 +245,7 @@ class MnetImporterTransport extends ImporterTransport {
private $tempdir;
private $zipfilename;
public function __construct(Importer $importer) {
public function __construct(PluginImport $importer) {
$this->importer = $importer;
$this->token = $importer->get('token');
$this->host = get_record('host', 'wwwroot', $importer->get('host'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment