Skip to content

Commit 203831b

Browse files
committed
Added check if repo has ending slash
1 parent eaded31 commit 203831b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/JoomlaBrowser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,7 @@ public function installExtensionFromFolder($path, $type = 'Extension')
337337
$this->debug('I enter the Path');
338338

339339
//Make sure path has an ending slash
340-
if (substr($path, -1) != "/")
341-
{
342-
$path = $path . "/";
343-
}
340+
$path = rtrim($path, "/") . "/";
344341

345342
$I->fillField(['id' => 'install_directory'], $path);
346343
// @todo: we need to find a better locator for the following Install button

0 commit comments

Comments
 (0)