mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
Load site_module_info from 'domains' table instead of 'sites' table
This commit is contained in:
parent
a69bac6e2b
commit
726220d3eb
4 changed files with 85 additions and 121 deletions
|
|
@ -79,6 +79,7 @@ class module extends ModuleObject
|
|||
|
||||
if(!is_dir('./files/ruleset')) return true;
|
||||
|
||||
$args = new stdClass;
|
||||
$args->skin = '.';
|
||||
$output = executeQueryArray('module.getModuleSkinDotList', $args);
|
||||
if($output->data && count($output->data) > 0)
|
||||
|
|
@ -313,12 +314,7 @@ class module extends ModuleObject
|
|||
}
|
||||
|
||||
// Migrate domains
|
||||
if (!$oDB->isTableExists('domains'))
|
||||
{
|
||||
$oDB->createTableByXmlFile($this->module_path . 'schemas/domains.xml');
|
||||
}
|
||||
|
||||
$output = executeQuery('module.getDomains');
|
||||
$output = @executeQuery('module.getDomains');
|
||||
if (!$output->data)
|
||||
{
|
||||
$this->migrateDomains();
|
||||
|
|
@ -397,6 +393,12 @@ class module extends ModuleObject
|
|||
*/
|
||||
function migrateDomains()
|
||||
{
|
||||
// Create the domains table.
|
||||
if (!$oDB->isTableExists('domains'))
|
||||
{
|
||||
$oDB->createTableByXmlFile($this->module_path . 'schemas/domains.xml');
|
||||
}
|
||||
|
||||
// Initialize domains data.
|
||||
$domains = array();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue