This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #1837 from vietvh/pgsql_discover

Fix extension discover fails in PostgreSQL
  • Loading branch information...
2 parents 15c5fa7 + e567f88 commit 0163ec17fba48a15f006efaeeded62f4ea653ec5 @eddieajau eddieajau committed Feb 24, 2013
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
@@ -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;
}
@@ -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;
}
}
@@ -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 0163ec1

Please sign in to comment.