Update theme-updater.blade.php
This commit is contained in:
parent
9794d140ba
commit
c36aed5a09
|
@ -47,7 +47,7 @@
|
||||||
if (strpos($sourceURL, 'github.com')){
|
if (strpos($sourceURL, 'github.com')){
|
||||||
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0)');
|
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0)');
|
||||||
try{
|
try{
|
||||||
$textGit = file_get_contents($replaced);
|
$textGit = external_file_get_contents($replaced);
|
||||||
$patternGit = '/Theme Version:.*/';
|
$patternGit = '/Theme Version:.*/';
|
||||||
preg_match($patternGit, $textGit, $matches, PREG_OFFSET_CAPTURE);
|
preg_match($patternGit, $textGit, $matches, PREG_OFFSET_CAPTURE);
|
||||||
$sourceURLGit = substr($matches[0][0],15);
|
$sourceURLGit = substr($matches[0][0],15);
|
||||||
|
|
Loading…
Reference in New Issue