mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-11 22:42:14 +09:00
insert config function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8958 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
58831579e1
commit
2e2b5ff74e
2 changed files with 21 additions and 0 deletions
|
|
@ -1371,6 +1371,12 @@
|
|||
* @param module, act
|
||||
**/
|
||||
function getValidatorFilePath($module, $ruleset) {
|
||||
// load dynamic ruleset xml file
|
||||
if (strpos($ruleset, '@') !== false){
|
||||
$rulsetFile = str_replace('@', '', $ruleset);
|
||||
$xml_file = sprintf('./files/ruleset/%s.xml', $rulsetFile);
|
||||
return FileHandler::getRealPath($xml_file);
|
||||
}
|
||||
// Get a path of the requested module. Return if not exists.
|
||||
$class_path = ModuleHandler::getModulePath($module);
|
||||
if(!$class_path) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue