Permalink
Browse files

Fix extension discover fails in PostgreSQL

  • Loading branch information...
1 parent 6510e7d commit e567f889c2bee54a0d2699a81c67d9a2558b9199 @vietvh vietvh committed Feb 20, 2013
View
4 libraries/legacy/installer/adapters/component.php
@@ -1559,9 +1559,11 @@ public function discover()
$extension->set('type', 'component');
$extension->set('client_id', 0);
$extension->set('element', $component);
+ $extension->set('folder', '');
$extension->set('name', $component);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
}
@@ -1577,9 +1579,11 @@ public function discover()
$extension->set('type', 'component');
$extension->set('client_id', 1);
$extension->set('element', $component);
+ $extension->set('folder', '');
$extension->set('name', $component);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
}
View
4 libraries/legacy/installer/adapters/language.php
@@ -562,9 +562,11 @@ public function discover()
$extension->set('type', 'language');
$extension->set('client_id', 0);
$extension->set('element', $language);
+ $extension->set('folder', '');
$extension->set('name', $language);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
}
@@ -577,9 +579,11 @@ public function discover()
$extension->set('type', 'language');
$extension->set('client_id', 1);
$extension->set('element', $language);
+ $extension->set('folder', '');
$extension->set('name', $language);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
}
View
2 libraries/legacy/installer/adapters/library.php
@@ -383,9 +383,11 @@ public function discover()
$extension->set('type', 'library');
$extension->set('client_id', 0);
$extension->set('element', $file);
+ $extension->set('folder', '');
$extension->set('name', $file);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
return $results;
View
4 libraries/legacy/installer/adapters/module.php
@@ -619,9 +619,11 @@ public function discover()
$extension->set('type', 'module');
$extension->set('client_id', $site_info->id);
$extension->set('element', $module);
+ $extension->set('folder', '');
$extension->set('name', $module);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = clone $extension;
}
@@ -632,9 +634,11 @@ public function discover()
$extension->set('type', 'module');
$extension->set('client_id', $admin_info->id);
$extension->set('element', $module);
+ $extension->set('folder', '');
$extension->set('name', $module);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = clone $extension;
}
View
2 libraries/legacy/installer/adapters/plugin.php
@@ -777,6 +777,7 @@ public function discover()
$extension->set('name', $file);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
$folder_list = JFolder::folders(JPATH_SITE . '/plugins/' . $folder);
@@ -806,6 +807,7 @@ public function discover()
$extension->set('name', $file);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
}
View
4 libraries/legacy/installer/adapters/template.php
@@ -508,9 +508,11 @@ public function discover()
$extension->set('type', 'template');
$extension->set('client_id', $site_info->id);
$extension->set('element', $template);
+ $extension->set('folder', '');
$extension->set('name', $template);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}
@@ -527,9 +529,11 @@ public function discover()
$extension->set('type', 'template');
$extension->set('client_id', $admin_info->id);
$extension->set('element', $template);
+ $extension->set('folder', '');
$extension->set('name', $template);
$extension->set('state', -1);
$extension->set('manifest_cache', json_encode($manifest_details));
+ $extension->set('params', '{}');
$results[] = $extension;
}

0 comments on commit e567f88

Please sign in to comment.