Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Subdir path added for full site url

givanzc76027ecb077
diff --git a/admin/controller/settings/site.php b/admin/controller/settings/site.php
index 0b2b068..ec5d35c 100755
--- a/admin/controller/settings/site.php
+++ b/admin/controller/settings/site.php
@@ -268,12 +268,14 @@ class Site extends Base {
$setting['order_id_format_preview'] = $this->invoiceFormatPreview($setting['order_id_format'] ?? '');
$view->set($data);
- $site['full-url'] = $site ? ('//' . Sites::url($site['host']) . (V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '')) : '';
+ //$site['full-url'] = $site ? ('//' . Sites::url($site['host']) . (V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '') . ($site['path'] ?? '' ? '/' . $site['path'] : '')) : '';
+ $site['full-url'] = $site ? ('//' . $site['url']) : '';
$view->site = $site + $setting;
$view->setting = $setting;
$view->resize = ['cs' => __('Crop & Resize'), 's' => __('Stretch'), 'c' => __('Crop')];
$view->formats = Image::formats();
$view->themeList = $themeList;
+ $view->subdir = V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '';
$view->templateList = \Vvveb\getTemplateList(false, ['email']);
$controllerPath = $admin_path . 'index.php?module=media/media';