mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +09:00
Various fixes to remove warnings in PHP 8.0
This commit is contained in:
parent
9a0bf6d907
commit
49923844b2
36 changed files with 271 additions and 176 deletions
|
|
@ -477,11 +477,20 @@ class layoutModel extends layout
|
|||
}
|
||||
|
||||
// Get a path of the requested module. Return if not exists.
|
||||
if(!$layout_path) $layout_path = $this->getLayoutPath($layout, $layout_type);
|
||||
if(!is_dir($layout_path)) return;
|
||||
if(!isset($layout_path))
|
||||
{
|
||||
$layout_path = $this->getLayoutPath($layout, $layout_type);
|
||||
}
|
||||
if(!is_dir($layout_path))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Read the xml file for module skin information
|
||||
if(!$xml_file) $xml_file = sprintf("%sconf/info.xml", $layout_path);
|
||||
if(!isset($xml_file))
|
||||
{
|
||||
$xml_file = sprintf("%sconf/info.xml", $layout_path);
|
||||
}
|
||||
if(!file_exists($xml_file))
|
||||
{
|
||||
$layout_info = new stdClass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue