Skip to content

Commit

Permalink
[MYGMOD-67] Fixed addLog()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mavlyan committed Nov 17, 2017
1 parent 4599e0c commit 2fd9fab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public function getConfig($configPath)
*/
protected function getDebugConfigPath()
{
return $this->_code . '/general/debug';
$code = $this->_code === 'mygento' ? 'mygento_base' : $this->_code;
return $code . '/general/debug';
}

public function getProduct($productId)
Expand Down
8 changes: 8 additions & 0 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
<label>Extensions and Support</label>
<frontend_model>Mygento\Base\Block\Extensions</frontend_model>
</group>
<group id="general" translate="label" type="text" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General Setting</label>
<field id="debug" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Debug</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>All built-in methods of Mygento_Base module will write log</comment>
</field>
</group>
</section>
</system>
</config>
3 changes: 2 additions & 1 deletion i18n/ru_RU.csv
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@
"Product Tax Attribute","Атрибут налога в товаре"
"Tax value for all products","Ставка НДС для всех товаров"
"Default Shipping name in receipt","Использовать системное название доставки в чеке"
"Shipping name in receipt","Наименование доставки в чеке"
"Shipping name in receipt","Наименование доставки в чеке"
"All built-in methods of Mygento_Base module will write log","Все встроенные методы в модуле Mygento_Base будут писать лог"

0 comments on commit 2fd9fab

Please sign in to comment.