Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix extension discover fails in PostgreSQL #730

Closed
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 20, 2013
  1. @vietvh
This page is out of date. Refresh to see the latest.
View
4 libraries/joomla/installer/adapters/component.php
@@ -1533,9 +1533,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;
}
}
@@ -1551,9 +1553,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/joomla/installer/adapters/language.php
@@ -528,9 +528,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;
}
}
@@ -543,9 +545,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/joomla/installer/adapters/library.php
@@ -361,9 +361,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/joomla/installer/adapters/module.php
@@ -612,9 +612,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;
}
@@ -625,9 +627,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/joomla/installer/adapters/plugin.php
@@ -733,6 +733,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);
@@ -760,6 +761,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/joomla/installer/adapters/template.php
@@ -492,9 +492,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;
}
@@ -511,9 +513,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;
}
Something went wrong with that request. Please try again.