Skip to content

Commit

Permalink
Version 2.1.57 (#896)
Browse files Browse the repository at this point in the history
* Update index.php

* Update Model.php

* Update Model.php

---------

Co-authored-by: blackcoder87 <[email protected]>
  • Loading branch information
hhunderter and blackcoder87 authored Jan 14, 2024
1 parent 2b6c120 commit dc3b37d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions application/libraries/Ilch/Layout/Helper/Title/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public function __toString(): string
return $config->get('page_title');
}

$separator = $config->get('page_title_moduldata_separator') ?? ' | ';
$separator = $config->get('page_title_moduledata_separator') ?? ' | ';

if ((bool)($config->get('page_title_moduldata_order') ?? '0')) {
if ((bool)($config->get('page_title_moduledata_order') ?? '0')) {
krsort($this->data);
} else {
ksort($this->data);
}

return str_replace(['%%title%%', '%%moduldata%%'], [$config->get('page_title'), implode($separator, $this->data)], $config->get('page_title_order') ?? '%%moduldata%% | %%title%%');
return str_replace(['%%title%%', '%%moduledata%%'], [$config->get('page_title'), implode($separator, $this->data)], $config->get('page_title_order') ?? '%%moduledata%% | %%title%%');
}
}
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$serverTimeZone = @date_default_timezone_get();
date_default_timezone_set('UTC');

define('VERSION', '2.1.56');
define('VERSION', '2.1.57');
define('SERVER_TIMEZONE', $serverTimeZone);
define('DEFAULT_MODULE', 'page');
define('DEFAULT_LAYOUT', 'index');
Expand Down

0 comments on commit dc3b37d

Please sign in to comment.