Skip to content

Commit

Permalink
Closes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Feb 22, 2013
1 parent 75a1075 commit 836259a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/classes/DataTypePluginHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function getDataTypePlugins($runtimeContext, $installedOnly = true) {
if (is_dir("$dataTypesFolder/$item")) {
$obj = self::instantiateDataType($runtimeContext, $dataTypesFolder, $item);
if ($obj != null && $obj !== false) {
$folders = explode(DIRECTORY_SEPARATOR, "$dataTypesFolder/$item");
$folders = explode(DIRECTORY_SEPARATOR, $dataTypesFolder . DIRECTORY_SEPARATOR . $item);
$folders = array_reverse($folders);

$obj->path = "{$folders[2]}/{$folders[1]}/{$folders[0]}";
Expand Down
2 changes: 1 addition & 1 deletion resources/classes/ExportTypePluginHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getExportTypePlugins($runtimeContext, $installedOnly = true) {
$obj = self::instantiateExportType($runtimeContext, $exportTypesFolder, $item);

if ($obj != null) {
$folders = explode(DIRECTORY_SEPARATOR, "$exportTypesFolder/$item");
$folders = explode(DIRECTORY_SEPARATOR, $exportTypesFolder . DIRECTORY_SEPARATOR . $item);
$folders = array_reverse($folders);

// interesting, this. This is extremely simple and makes access to these values really easy
Expand Down

0 comments on commit 836259a

Please sign in to comment.