Pārlūkot izejas kodu

some fixes of errors when variables were not properly set

master
Dominik Schmidt-Philipp pirms 6 dienas
vecāks
revīzija
62c303928b
4 mainītis faili ar 13 papildinājumiem un 5 dzēšanām
  1. +1
    -1
      app/controller/page.php
  2. +6
    -2
      app/freaParsedown.php
  3. +5
    -1
      app/modules/elementdispatcher.php
  4. +1
    -1
      app/views/colors.css

+ 1
- 1
app/controller/page.php Parādīt failu

@@ -126,7 +126,7 @@ class Page {
$f3->set('logo', $folder->extras['logo']);
}
if ($folder->extras['background']
&& !$folder->config['supressBackground']) {
&& empty($folder->config['supressBackground'])) {
//$background = new \Modules\CachedImage($folder->extras['background']);
//$f3->set('backgroundImage',$background->get_src(3000));
$background = $folder->extras['background'];

+ 6
- 2
app/freaParsedown.php Parādīt failu

@@ -32,9 +32,13 @@ class freaParsedown extends Parsedown {
$f3 = \Base::instance();
$data = [];
$base = substr($href,0,strpos($href,'?') ? : strlen($href));
parse_str(parse_url($href,PHP_URL_QUERY),$data);
$query = parse_url($href,PHP_URL_QUERY);
$fragment = parse_url($href,PHP_URL_FRAGMENT);

if (null !== $query) {
parse_str($query,$data);
}

if ($f3->get('LANG') != $f3->get('default_lang')) {
if (!array_key_exists('lang',$data)) {
$data['lang'] = $f3->get('LANG');

+ 5
- 1
app/modules/elementdispatcher.php Parādīt failu

@@ -288,8 +288,12 @@ class ElementDispatcher {
$data = [];
$base = substr($dest,0,strpos($dest,'?') ? : strlen($dest));
parse_str(parse_url($dest,PHP_URL_QUERY),$data);
$query = parse_url($dest,PHP_URL_QUERY);
$fragment = parse_url($dest,PHP_URL_FRAGMENT);

if (null !== $query) {
parse_str($query,$data);
}
if ($f3->get('LANG') != $f3->get('default_lang')) {
if (!array_key_exists('lang',$data)) {

+ 1
- 1
app/views/colors.css Parādīt failu

@@ -1,5 +1,5 @@
body {
background-color: {{ @backgroundColor }};
background-color: {{ isset(@backgroundColor) ? $backgroundColor : "#fff" }};
<check if="{{ isset(@backgroundImage) }}">
background-image: url(/{{ @backgroundImage }});
</check>

Notiek ielāde…
Atcelt
Saglabāt