AbanteCart Development > General Extensions
Extension controller bug
(1/1)
natdroid:
in install.php we have
--- Code: ---$rm->setType('fonts');
$this->db->query("INSERT INTO ".DB_PREFIX."resource_types (`type_id`, `type_name`, `default_directory`, `default_icon`, `file_types`) VALUES ('10', 'fonts', 'fonts/', 'icon_resource_font.png', '/.+(ttf)$/i');");
--- End code ---
in config.xml we have Setting upload font
--- Code: --- <item id="text_font">
<type>resource</type>
<resource_type>fonts</resource_type>
</item>
--- End code ---
when we try to upload new font image setting show and offcouse Filetype not allowed error >:(
https://www.anonimg.com/img/6318cf615ee29fb1065185354899055f.jpg
HELPPP Final Step to a Great Addon
PS
caching disabled
UPDATE
Bug Report
file admin/controller/pages/extension/extensions.php line 397
--- Quote --- array('type' => 'image',
--- End quote ---
Script HARDCODED :-X
abolabo:
you have restriction by filetype inside your database. table resource_types. see the mask? column file_types
abolabo:
oh.. you found bug in a core
public_html/admin/controller/pages/extension/extensions.php line 408
there hardcode of type
--- Quote ---array('type' => 'image',
--- End quote ---
as solution i can propose to you use custom setting tpl (look into default_pp_pro config.xml)
--- Code: ---<custom_settings_template>pages/extension/default_pp_pro_settings.tpl</custom_settings_template>
--- End code ---
inside your own tpl you can set all html-elements what you want including RL
p.s. do not forget to add this tpl into main.php
Navigation
[0] Message Index
Go to full version