Permalink
Browse files

correction of phase `readini` of Theme & Preload

Theme と Preload の ini ファイルからのアイテムオブジェクト生成の局面で、動作が怪しげな部分を修正してみた。
ref. http://www.xugj.org/modules/QandA/index.php?topic_id=2400
  • Loading branch information...
nao-pon committed Apr 1, 2014
1 parent f7ccb2b commit 7669e2a7d3d7225a84e899a1cec361dd0660d141
Showing with 3 additions and 4 deletions.
  1. +3 −4 xoops_trust_path/modules/xupdate/class/handler/ModuleStore.class.php
@@ -174,15 +174,14 @@ public function setmModule($readini = true)
'lastupdate' => 0);
}
if ($readini) {
if ($_isModule) {
$this->setVar('isactive', -1);
} else {
$this->setVar('isactive', -1);
if (! $_isModule) {
// for Theme
if ($this->getVar('contents') == 'theme') {
$t_dir = XOOPS_ROOT_PATH . '/themes/' . $this->getVar('dirname');
if (is_dir($t_dir)) {
$this->setVar('isactive', 1);
$lastupdate = filemtime($t_dir.'/theme.html');
$lastupdate = filemtime($t_dir);
$this->setVar('last_update', $lastupdate);
$m_file = $t_dir . '/' . 'manifesto.ini.php';
if (is_file($m_file)) {

0 comments on commit 7669e2a

Please sign in to comment.