Update theme-updater.blade.php

This commit is contained in:
Julian Prieber 2023-06-22 15:42:59 +02:00
parent 9794d140ba
commit c36aed5a09
1 changed files with 1 additions and 1 deletions

View File

@ -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);