Commit 3982a7c6757672d68e4046c48bb194e3ec7263cb

Authored by bshuttle
1 parent f1094ca4

need the helper function on plugin.inc.php for this to work.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5432 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 11 additions and 0 deletions
lib/plugins/plugin.inc.php
... ... @@ -47,6 +47,7 @@ class KTPlugin {
47 47 var $_ai18n = array();
48 48 var $_ai18nLang = array();
49 49 var $_aLanguage = array();
  50 + var $_aHelpLanguage = array();
50 51  
51 52 function KTPlugin($sFilename = null) {
52 53 $this->sFilename = $sFilename;
... ... @@ -126,6 +127,10 @@ class KTPlugin {
126 127 function registerLanguage($sLanguage, $sLanguageName) {
127 128 $this->_aLanguage[$sLanguage] = array($sLanguage, $sLanguageName);
128 129 }
  130 +
  131 + function registerHelpLanguage($sPlugin, $sLanguage, $sBasedir) {
  132 + $this->_aHelpLanguage[$sLanguage] = array($sPlugin, $sLanguage, $sBasedir);
  133 + }
129 134  
130 135 function _fixFilename($sFilename) {
131 136 if (empty($sFilename)) {
... ... @@ -182,6 +187,7 @@ class KTPlugin {
182 187 require_once(KT_LIB_DIR . "/plugins/KTAdminNavigation.php");
183 188 require_once(KT_LIB_DIR . "/dashboard/dashletregistry.inc.php");
184 189 require_once(KT_LIB_DIR . "/i18n/i18nregistry.inc.php");
  190 + require_once(KT_LIB_DIR . "/help/help.inc.php");
185 191  
186 192 $oPRegistry =& KTPortletRegistry::getSingleton();
187 193 $oTRegistry =& KTTriggerRegistry::getSingleton();
... ... @@ -191,6 +197,7 @@ class KTPlugin {
191 197 $oAdminRegistry =& KTAdminNavigationRegistry::getSingleton();
192 198 $oDashletRegistry =& KTDashletRegistry::getSingleton();
193 199 $oi18nRegistry =& KTi18nRegistry::getSingleton();
  200 + $oKTHelpRegistry =& KTHelpRegistry::getSingleton();
194 201  
195 202 foreach ($this->_aPortlets as $k => $v) {
196 203 call_user_func_array(array(&$oPRegistry, 'registerPortlet'), $v);
... ... @@ -235,6 +242,10 @@ class KTPlugin {
235 242 foreach ($this->_aLanguage as $k => $v) {
236 243 call_user_func_array(array(&$oi18nRegistry, 'registerLanguage'), $v);
237 244 }
  245 +
  246 + foreach ($this->_aHelpLanguage as $k => $v) {
  247 + call_user_func_array(array(&$oKTHelpRegistry, 'registerHelp'), $v);
  248 + }
238 249 }
239 250  
240 251 function setup() {
... ...