为什么我的ocmod不使用大括号?
<file path="{admin,catalog}/model/tool/upload.php">
<operation error="skip">
<search index="0">
<![CDATA[public function addUpload(]]>
</search>
<add position="below">
<![CDATA[...]]>
</add>
</operation>
</file>
如果我将路径更改为<file path="catalog/model/tool/upload.php">
,则无效。
https://github.com/opencart/opencart/wiki/Modification-System
Using braces allows for selecting multiple files and not having to repeat the code operation multiple times.
<file path="system/{engine,library}/{action,loader,config,language}*.php">
答案 0 :(得分:0)
注意:在OpenCart 2.0.2.0中静默地破坏了通配符路径。新方法是逗号分隔完整路径:
g.addVertex(T.label,"person","name","stephen")
将写为
<file path="system/{engine,library}/{action,loader,config,language}*.php,">