Commit 31339a8dbc67a89656820201a4fad05873327762

Authored by Brad Shuttleworth
1 parent d5bf2486

Bryn was right.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5433 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 1 deletions
lib/help/help.inc.php
@@ -104,6 +104,7 @@ class KTHelp { @@ -104,6 +104,7 @@ class KTHelp {
104 'title' => null, 104 'title' => null,
105 'body' => null, 105 'body' => null,
106 'help_id' => null, 106 'help_id' => null,
  107 + 'name' => null,
107 ); 108 );
108 $aPathInfo = KTHelp::_getLocationInfo($sSubPath, $sLangCode); 109 $aPathInfo = KTHelp::_getLocationInfo($sSubPath, $sLangCode);
109 if (PEAR::isError($aPathInfo)) { 110 if (PEAR::isError($aPathInfo)) {
@@ -126,6 +127,7 @@ class KTHelp { @@ -126,6 +127,7 @@ class KTHelp {
126 $aInfo['title'] = $oReplacement->getTitle(); 127 $aInfo['title'] = $oReplacement->getTitle();
127 $aInfo['body'] = $oReplacement->getDescription(); 128 $aInfo['body'] = $oReplacement->getDescription();
128 $aInfo['help_id'] = $oReplacement->getID(); 129 $aInfo['help_id'] = $oReplacement->getID();
  130 + $aInfo['name'] = $oReplacement->getName();
129 return $aInfo; 131 return $aInfo;
130 } 132 }
131 133
@@ -144,7 +146,7 @@ class KTHelp { @@ -144,7 +146,7 @@ class KTHelp {
144 return PEAR::raiseError(_kt("The requested help language has no contents.")); 146 return PEAR::raiseError(_kt("The requested help language has no contents."));
145 } 147 }
146 $aInfo['title'] = KTUtil::arrayGet($aData, 'title', _kt("Untitled Help File")); 148 $aInfo['title'] = KTUtil::arrayGet($aData, 'title', _kt("Untitled Help File"));
147 - 149 + $aInfo['name'] = $aPathInfo['internal'];
148 return $aInfo; 150 return $aInfo;
149 } 151 }
150 152