Skip to content

Commit

Permalink
Display Data Source name
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoerrmann committed Jun 23, 2014
1 parent 6f0442c commit ddc0ebe
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions content/content.importers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1081,9 +1081,17 @@ public function __viewIndex() {
));

if (!empty($importer['source'])) {
$col_url = Widget::TableData(
General::sanitize($importer['source'])
);
$handle = General::sanitize($importer['source']);
$datasources = DatasourceManager::listAll();

if(!empty($datasources[$handle]['name'])) {
$source = $datasources[$handle]['name'];
}
else {
$source = $handle;
}

$col_url = Widget::TableData($source);
}

else {
Expand Down

0 comments on commit ddc0ebe

Please sign in to comment.