Skip to content
Permalink
Browse files

Fix edge case issue with file permissions on fresh install, running t…

…est platform before Composr
  • Loading branch information...
Patrick
Patrick committed Jul 23, 2019
1 parent 249f926 commit 4eb2b0736990fa132241f63319918eb173f60bb7
Showing with 3 additions and 3 deletions.
  1. +2 −2 sources/files2.php
  2. +1 −1 sources/global3.php
@@ -180,15 +180,15 @@ function _intelligent_write_error($path)
* Discern the cause of a file-write error, and return an appropriate error message.
*
* @param PATH $path File path that could not be written
* @return Tempcode Message
* @return mixed Message (Tempcode or string)
*
* @ignore
*/
function _intelligent_write_error_inline($path)
{
static $looping = false;
if ($looping || !function_exists('do_lang_tempcode')) { // In case do_lang_tempcode below spawns a recursive failure, due to the file being the language cache itself
critical_error('PASSON', 'Could not write to ' . htmlentities($path)); // Bail out hard if would cause a loop
return 'Could not write to ' . htmlentities($path); // Bail out hard if would cause a loop
}
$looping = true;
@@ -1137,7 +1137,7 @@ function intelligent_write_error($path)
* Discern the cause of a file-write error, and return an appropriate error message.
*
* @param PATH $path File path that could not be written
* @return Tempcode Message
* @return mixed Message (Tempcode or string)
*/
function intelligent_write_error_inline($path)
{

0 comments on commit 4eb2b07

Please sign in to comment.
You can’t perform that action at this time.