• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revisionbb3d66e85314d07cf97667cf96b7e45d6a1ad177 (tree)
Zeit2012-08-12 21:04:26
AutorNobuhiro YASUTOMI <nobuhiro.yasutomi@nift...>
CommiterNobuhiro YASUTOMI

Log Message

fix gethandler for internal class (issues #10)

Ändern Zusammenfassung

Diff

--- a/html/include/functions.php
+++ b/html/include/functions.php
@@ -579,10 +579,15 @@ function &xoops_gethandler($name, $optional = false )
579579 XCube_DelegateUtils::call('Legacy.Event.GetHandler', new XCube_Ref($handler), $name, $optional);
580580 if ($handler) return $handlers[$name] =& $handler;
581581
582- require_once XOOPS_ROOT_PATH.'/kernel/'.$name.'.php';
582+ // internal Class handler exist
583583 if (XC_CLASS_EXISTS($class = 'Xoops'.ucfirst($name).'Handler')) {
584584 $handlers[$name] = $handler = new $class($GLOBALS['xoopsDB']);
585585 return $handler;
586+ }
587+ include_once XOOPS_ROOT_PATH.'/kernel/'.$name.'.php';
588+ if (XC_CLASS_EXISTS($class)) {
589+ $handlers[$name] = $handler = new $class($GLOBALS['xoopsDB']);
590+ return $handler;
586591 }
587592
588593 if (!$optional) {