Commit cfd1d8d7d545d16b7735558aca0dd02d8c851c24
1 parent
ad2724a0
added configurable organisation
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1727 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
4 additions
and
1 deletions
config/environment.php
| ... | ... | @@ -39,6 +39,9 @@ require_once("$default->fileSystemRoot/lib/database/lookup.inc"); |
| 39 | 39 | require_once("$default->fileSystemRoot/lib/System.inc"); |
| 40 | 40 | $default->system = new System(); |
| 41 | 41 | |
| 42 | +// hack to set org to use | |
| 43 | +$default->organisationID = 1; | |
| 44 | + | |
| 42 | 45 | if ($default->system->initialised()) { |
| 43 | 46 | $aSettings = array("ldapServer", "ldapRootDn", "ldapServerType", "emailServer", "emailFrom", "emailFromName", |
| 44 | 47 | "emailAdmin", "emailAdminName", | ... | ... |
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
| ... | ... | @@ -159,7 +159,7 @@ function renderPage($aPendingDocumentList, $aCheckedOutDocumentList, $aSubscript |
| 159 | 159 | // some arb welcoming text goes here |
| 160 | 160 | $oUser = & User::get($_SESSION["userID"]); |
| 161 | 161 | $sUserName = $oUser->getName(); |
| 162 | - $sToRender .= "\t\t<td>Hi" . (strlen($sUserName) > 0 ? " " . $sUserName : "") . ", welcome back to the MRC DMS, part of the Knowledge Tree.</td>\n"; | |
| 162 | + $sToRender .= "\t\t<td>Hi" . (strlen($sUserName) > 0 ? " " . $sUserName : "") . ", welcome back to the " . lookupField($default->owl_organisations_table, "name", "id", $default->organisationID) . " DMS, part of the Knowledge Tree.</td>\n"; | |
| 163 | 163 | $sToRender .= "\t</tr>\n"; |
| 164 | 164 | |
| 165 | 165 | // dashboard alerts | ... | ... |