You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4968,7 +4967,7 @@ function my_file_put_contents($path,$content) {
4968
4967
global$dir, $bad_settings;
4969
4968
$bad_settings = FALSE;
4970
4969
$result = @file_put_contents($path,$content);
4971
-
if($result === false) {
4970
+
if($result === FALSE) {
4972
4971
$error = error_get_last();
4973
4972
echo"<p>Failed to write to the file: ".$path;
4974
4973
echo"<br />Error: ".$error['message']."</p>";
@@ -4977,28 +4976,8 @@ function my_file_put_contents($path,$content) {
4977
4976
if($type_of_file['type'] == "settings") {
4978
4977
$bad_settings = TRUE;
4979
4978
}
4979
+
returnFALSE;
4980
4980
}
4981
-
return;
4982
-
/*
4983
-
if(is_writable($path)) {
4984
-
file_put_contents($path,$content);
4985
-
return;
4986
-
}
4987
-
else {
4988
-
@chmod($path,0777);
4989
-
if(is_writable($path)) {
4990
-
file_put_contents($path,$content);
4991
-
return OK;
4992
-
}
4993
-
echo "<p>👉 Failed to change the permissions of file <span class=\"green-text\">".$path."</span>. You should export this file in the index of the current workspace and upload it again.<p />";
0 commit comments