Skip to content

Commit e790dc4

Browse files
committed
Fix error with Advanced Module Manager
1 parent 382a193 commit e790dc4

File tree

5 files changed

+40
-97
lines changed

5 files changed

+40
-97
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
## WIP
44
- Update to Bootstrap 5.2
5-
- Fix error on Joomla 4.2+
65
- Add French translations (thanks @MATsxm)
6+
- Fix error on Joomla 4.2+
7+
- Fix error with Advanced Module Manager
8+
- Fix toolbar not sticking on scroll
79
- Fix sample data installation JS error
810

911
## 1.0.3

build-zip.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ template.file('index.php')
3232
template.file('joomla.asset.json')
3333
template.file('login.php')
3434
template.file('offline.php')
35+
template.file('script.php')
3536
template.file('template_preview.png')
3637
template.file('template_thumbnail.png')
3738
template.file('templateDetails.xml')

html/layouts/com_modules/joomla/form/field/modulespositionedit.php

Lines changed: 0 additions & 96 deletions
This file was deleted.

script.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
/**
3+
* @package Bettum
4+
* @copyright Copyright (C) 2020 Charlie Lodder. All rights reserved.
5+
* @license GNU General Public License version 2 or later; see LICENSE.txt
6+
*/
7+
8+
// No direct access to this file
9+
defined('_JEXEC') or die('Restricted access');
10+
11+
use Joomla\CMS\Installer\InstallerScript;
12+
13+
/**
14+
* Bettum installation script class.
15+
*
16+
* @since 1.0.4
17+
*/
18+
class BettumInstallerScript extends InstallerScript
19+
{
20+
protected $extension = 'bettum';
21+
22+
protected $deleteFolders = [
23+
'/administrator/templates/bettum/html/layouts/com_modules',
24+
];
25+
26+
public function postflight($type, $adapter): bool
27+
{
28+
if ($type === 'update')
29+
{
30+
$this->removeFiles();
31+
}
32+
33+
return true;
34+
}
35+
}

templateDetails.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<authorEmail>[email protected]</authorEmail>
88
<copyright>Copyright (C) 2020 Charlie Lodder. All rights reserved.</copyright>
99
<description>TPL_BETTUM_XML_DESCRIPTION</description>
10+
<scriptfile>script.php</scriptfile>
1011

1112
<files>
1213
<filename>component.php</filename>

0 commit comments

Comments
 (0)