Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
/ICEcoderPublic archive

Commitf689908

Browse files
authored
Extra fallback to open file
1 parentd3df862 commitf689908

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎lib/settings-common.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ function getData($url,$type='fopen',$dieMessage=false,$timeout=60) {
7474
if (!$data) {
7575
$data = @file_get_contents(str_replace("https:","http:",$url),false,$context);
7676
}
77-
}
77+
}elseif (file_exists($url)) {
78+
$data =file_get_contents($url);
79+
}
7880
// Return data or die with message
7981
if ($data) {
8082
return$data;
@@ -298,4 +300,4 @@ function getVersionsCount($fileLoc,$fileName) {
298300
"dateCounts" =>$dateCounts
299301
);
300302
}
301-
?>
303+
?>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp