Else-Code is passed when $this->_mXoopsModule is not an
object, $this->_mXoopsModule->get('dirname') may be fatal
error. Updater doesn't check is_object(), so these check
code s have to be uniformed.
[EN]
Shall we handle "$this->_mXoopsModule is an object or not?"
as the precondition of these three classes. In fact, three
actions about these classes check such preconditions. If
deletes those code which is never passed, we can fix it rapidly.
L168-173
#10089 と似たようなものだけど
Legacy_ModuleUninstaller::_processReport() にて
if (is_object($this->_mXoopsModule)) {
$this->mLog->addError(XCube_Utils::formatMessage
(_AD_LEGACY_ERROR_UNINSTALLATION_MODULE_FAILURE, $this-
>_mXoopsModule->get('name')));
}
else {
$this->mLog->addError(XCube_Utils::formatMessage
(_AD_LEGACY_ERROR_UNINSTALLATION_MODULE_FAILURE, $this-
>_mXoopsModule->get('dirname')));
}
の else 内は $this->_mXoopsModule がおぶじぇくとじゃな
いときに通過するので
$this->_mXoopsModule->get('dirname')
で落ちちゃいそうです
updater では is_object ちぇっくはしてなかったけどどれか
に合わせたほうがいいのかなぁ?