mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Fix var_export() not working for stdClass in PHP < 7.3
This commit is contained in:
parent
a2c9274681
commit
3f7f802585
8 changed files with 40 additions and 43 deletions
|
|
@ -82,18 +82,18 @@ class LangParser
|
|||
{
|
||||
foreach ($subvalue as $subsubkey => $subsubvalue)
|
||||
{
|
||||
$buff .= '$lang->' . $key . "['$subkey']['$subsubkey']" . ' = ' . var_export($subsubvalue, true) . ";\n";
|
||||
$buff .= '$lang->' . $key . "['$subkey']['$subsubkey']" . ' = ' . var_export_clean($subsubvalue) . ";\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$buff .= '$lang->' . $key . "['$subkey']" . ' = ' . var_export($subvalue, true) . ";\n";
|
||||
$buff .= '$lang->' . $key . "['$subkey']" . ' = ' . var_export_clean($subvalue) . ";\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$buff .= '$lang->' . $key . ' = ' . var_export($value, true) . ";\n";
|
||||
$buff .= '$lang->' . $key . ' = ' . var_export_clean($value) . ";\n";
|
||||
}
|
||||
}
|
||||
Storage::write($output_filename, $buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue