Release of v5.1.1-beta4
Fix the FieldXML interface mismatch. #1228. Adds Initialize, Reset, and Push functionality to the Repository entities.
This commit is contained in:
@@ -22,9 +22,16 @@ defined('JPATH_BASE') or die;
|
||||
|
||||
$base = $displayData['repo']->base ?? null;
|
||||
$path = $displayData['repo']->path ?? null;
|
||||
$type = $displayData['repo']->type ?? 0;
|
||||
$url = "#";
|
||||
if (!empty($base) && !empty($path))
|
||||
{
|
||||
// if the type is GitHub = 2
|
||||
if ($type == 2)
|
||||
{
|
||||
$base = 'https://github.com';
|
||||
}
|
||||
|
||||
$url = "{$base}/{$path}";
|
||||
}
|
||||
$name = $displayData['name'] ?? 'error';
|
||||
|
Reference in New Issue
Block a user