Skip to content

Commit

Permalink
Fix home path for homepage files in multi-url context - refs BT#9802 …
Browse files Browse the repository at this point in the history
…#kwig
  • Loading branch information
ywarnier committed Oct 12, 2015
1 parent 0a91122 commit e44e7d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/admin/configure_homepage.php
Expand Up @@ -153,7 +153,7 @@ function home_tabs($file_logged_in)
$clean_url .= '/';

$homep = $homePath; //homep for Home Path
$homep_new = $homePath.'home/'.$clean_url; //homep for Home Path added the url
$homep_new = $homePath.$clean_url; //homep for Home Path added the url
$new_url_dir = $homePath.$clean_url;
//we create the new dir for the new sites
if (!is_dir($new_url_dir)) {
Expand Down Expand Up @@ -594,6 +594,7 @@ function home_tabs($file_logged_in)
case 'edit_top':
// This request is only the preparation for the update of the home_top
$home_top = '';
error_log($homep.$topf.'_'.$lang.$ext);
if (is_file($homep.$topf.'_'.$lang.$ext) && is_readable($homep.$topf.'_'.$lang.$ext)) {
$home_top = @(string)file_get_contents($homep.$topf.'_'.$lang.$ext);
} elseif (is_file($homep.$topf.$lang.$ext) && is_readable($homep.$topf.$lang.$ext)) {
Expand Down

0 comments on commit e44e7d5

Please sign in to comment.