Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/content.index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function __construct(&$parent)
}
*/

public function build()
public function build(array $context = array())
{
parent::build();
parent::addStylesheetToHead(URL . '/extensions/importcsv/assets/importcsv.css');
Expand Down Expand Up @@ -155,7 +155,7 @@ private function __importStep3Page()
$this->__addVar('section-id', $sectionID);
$this->__addVar('unique-action', $uniqueAction);
$this->__addVar('unique-field', $uniqueField);
$this->__addVar('import-url', URL . '/symphony/extension/importcsv/');
$this->__addVar('import-url', SYMPHONY_URL . '/extension/importcsv/');

// Output the CSV-data:
$csvData = $csv->data;
Expand Down
2 changes: 1 addition & 1 deletion extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function fetchNavigation()
}
}

public function update()
public function update($previousVersion = false)
{
if (file_exists(TMP.'/importcsv.csv')) {
@unlink(TMP.'/importcsv.csv');
Expand Down
12 changes: 12 additions & 0 deletions extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
</author>
</authors>
<releases>
<release version="1.0.5" date="2020-03-31" min="2.6.0" max="2.x.x">
- fix `count()` error in line 158 of the parseCSV-lib for PHP7.4
</release>
<release version="1.0.4" date="2018-01-10" min="2.6.0" max="2.x.x">
- Array() —> array()
</release>
<release version="1.0.3" date="2017-12-19" min="2.6.0" max="2.x.x">
- Include @wdebusschere’s fix `Allow custom backendurl URL -> SYMPHONY_URL`
</release>
<release version="1.0.2" date="2017-11-07" min="2.6.0" max="2.x.x">
- PHP7 compatibility
</release>
<release version="1.0.1" date="2017-11-06" min="2.6.0" max="2.x.x">
- Fix importer's Member password value (#2)
</release>
Expand Down
2 changes: 1 addition & 1 deletion lib/parsecsv-0.3.2/parsecsv.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class parseCSV {
function parseCSV ($input = null, $offset = null, $limit = null, $conditions = null) {
if ( $offset !== null ) $this->offset = $offset;
if ( $limit !== null ) $this->limit = $limit;
if ( count($conditions) > 0 ) $this->conditions = $conditions;
if ( is_array($conditions) && count($conditions) > 0 ) $this->conditions = $conditions;
if ( !empty($input) ) $this->parse($input);
}

Expand Down