mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
installation issues
This commit is contained in:
parent
798c83b6aa
commit
82bd1ce3cb
3 changed files with 30 additions and 30 deletions
6
boot.php
6
boot.php
|
@ -1862,11 +1862,11 @@ function format_like($cnt,$arr,$type,$id) {
|
|||
|
||||
if(! function_exists('load_view_file')) {
|
||||
function load_view_file($s) {
|
||||
global $lang;
|
||||
if(! isset($lang))
|
||||
$lang = 'en';
|
||||
$b = basename($s);
|
||||
$d = dirname($s);
|
||||
$lang = get_config('system','language');
|
||||
if($lang === false)
|
||||
$lang = 'en';
|
||||
if(file_exists("$d/$lang/$b"))
|
||||
return file_get_contents("$d/$lang/$b");
|
||||
return file_get_contents($s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue