Skip to content

Commit 0cb2db1

Browse files
committed
Adjusted the extension creator to the new .htaccess policy
1 parent bf0cb65 commit 0cb2db1

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

system/modules/devtools/config/autoload.php

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
'dev_extension' => 'system/modules/devtools/templates',
3838
'dev_feClass' => 'system/modules/devtools/templates',
3939
'dev_feTemplate' => 'system/modules/devtools/templates',
40-
'dev_htaccess' => 'system/modules/devtools/templates',
4140
'dev_labels' => 'system/modules/devtools/templates',
4241
'dev_model' => 'system/modules/devtools/templates',
4342
'dev_modules' => 'system/modules/devtools/templates',

system/modules/devtools/modules/ModuleExtension.php

-10
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ protected function compile()
6969
return;
7070
}
7171

72-
// .htaccess
73-
$tplHtaccess = new \BackendTemplate('dev_htaccess');
74-
$objHtaccess = new \File('system/modules/' . $objModule->folder . '/.htaccess');
75-
$objHtaccess->write($tplHtaccess->parse());
76-
$objHtaccess->close();
77-
7872
// config/config.php
7973
$tplConfig = $this->newTemplate('dev_config', $objModule);
8074
$objConfig = new \File('system/modules/' . $objModule->folder . '/config/config.php');
@@ -175,10 +169,6 @@ protected function compile()
175169

176170
foreach ($arrLanguages as $strLanguage)
177171
{
178-
$objHtaccess = new \File('system/modules/' . $objModule->folder . '/languages/' . $strLanguage . '/.htaccess');
179-
$objHtaccess->write($tplHtaccess->parse());
180-
$objHtaccess->close();
181-
182172
// languages/xx/default.php
183173
$tplLanguage = $this->newTemplate('dev_default', $objModule);
184174
$tplLanguage->language = $strLanguage;

system/modules/devtools/templates/dev_htaccess.html5

-2
This file was deleted.

0 commit comments

Comments
 (0)