Core update (version check)
This commit is contained in:
parent
98faa872b2
commit
753999591e
1 changed files with 2 additions and 5 deletions
|
@ -518,12 +518,9 @@ class YellowCommandline
|
|||
// Return plugin version URL from repository
|
||||
function getPluginVersionUrl($url)
|
||||
{
|
||||
if(!$this->yellow->lookup->isFileLocation($url))
|
||||
if(preg_match("#^https://github.com/(.+)$#", $url, $matches))
|
||||
{
|
||||
if(preg_match("#^https://github.com/(.+)$#", $url, $matches))
|
||||
{
|
||||
$url = "https://raw.githubusercontent.com/".$matches[1]."/master/version.ini";
|
||||
}
|
||||
$url = "https://raw.githubusercontent.com/".$matches[1]."/master/version.ini";
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue