Skip to content

Commit b586d68

Browse files
committed
Fix favicon path + bump to v1.4.1
1 parent 57d242a commit b586d68

File tree

9 files changed

+16
-13
lines changed

9 files changed

+16
-13
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.4.1
4+
- Fix override favicon path
5+
36
## 1.4.0
47
- Add ability to override favicon
58
- Favicon now displays on error and offline pages

error.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
$fontAwesome = (boolean)$this->params->get('font-awesome-thats-actually-rather-shit', 1);
2626
$googleFont = $this->params->get('google-font', '');
2727
$faviconPath = (boolean)$this->params->get('favicon-override', 0)
28-
? JPATH_ROOT
28+
? Uri::root()
2929
: 'templates/' . $this->template . '/favicon';
3030

3131
// Template params
@@ -81,7 +81,7 @@
8181

8282
$imageLayout = new FileLayout('lightning.favicon');
8383
$imageLayout->render([
84-
'path' => 'templates/' . $this->template . '/favicon',
84+
'path' => $faviconPath,
8585
]);
8686
?>
8787
<!DOCTYPE html>

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
$fontAwesome = (boolean)$this->params->get('font-awesome-thats-actually-rather-shit', 1);
2626
$googleFont = $this->params->get('google-font', '');
2727
$faviconPath = (boolean)$this->params->get('favicon-override', 0)
28-
? JPATH_ROOT
28+
? Uri::root()
2929
: 'templates/' . $this->template . '/favicon';
3030

3131
// Load switcher CSS
@@ -93,7 +93,7 @@
9393

9494
$imageLayout = new FileLayout('lightning.favicon');
9595
$imageLayout->render([
96-
'path' => 'templates/' . $this->template . '/favicon',
96+
'path' => $faviconPath,
9797
]);
9898

9999
$menu = $this->getBuffer('modules', 'menu', $attribs = ['style' => 'none']);

joomla.asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
33
"name": "lightning",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"description": "Joomla 4 template using HiQ CSS",
66
"license": "GPL-2.0-or-later",
77
"assets": [

offline.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
$fontAwesome = (boolean)$this->params->get('font-awesome-thats-actually-rather-shit', 1);
2929
$googleFont = $this->params->get('google-font', '');
3030
$faviconPath = (boolean)$this->params->get('favicon-override', 0)
31-
? JPATH_ROOT
31+
? Uri::root()
3232
: 'templates/' . $this->template . '/favicon';
3333

3434
// Load switcher CSS
@@ -85,7 +85,7 @@
8585

8686
$imageLayout = new FileLayout('lightning.favicon');
8787
$imageLayout->render([
88-
'path' => 'templates/' . $this->template . '/favicon',
88+
'path' => $faviconPath,
8989
]);
9090
?>
9191
<!DOCTYPE html>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightning",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Joomla 4 template using HiQ",
55
"repository": {
66
"type": "git",

templateDetails.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="template" client="site" method="upgrade">
33
<name>lightning</name>
4-
<version>1.4.0</version>
4+
<version>1.4.1</version>
55
<creationDate>9th March 2020</creationDate>
66
<author>JoomJunk</author>
77
<authorEmail>[email protected]</authorEmail>

updates/lightning_updates.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<description>Joomla 4 template using HiQ CSS</description>
55
<element>lightning</element>
66
<type>template</type>
7-
<version>1.4.0</version>
7+
<version>1.4.1</version>
88
<infourl title="Lightning Release Notes">https://github.com/C-Lodder/lightning/blob/master/CHANGELOG.md</infourl>
99
<downloads>
10-
<downloadurl type="full" format="zip">https://github.com/C-Lodder/lightning/releases/download/v1.4.0/tpl_lightning-v1.4.0.zip</downloadurl>
10+
<downloadurl type="full" format="zip">https://github.com/C-Lodder/lightning/releases/download/v1.4.1/tpl_lightning-v1.4.1.zip</downloadurl>
1111
</downloads>
1212
<maintainer>Charlie Lodder</maintainer>
1313
<maintainerurl>https://joomjunk.co.uk</maintainerurl>

0 commit comments

Comments
 (0)