diff --git a/config/environment.php b/config/environment.php index c703f28..8c33290 100644 --- a/config/environment.php +++ b/config/environment.php @@ -39,6 +39,9 @@ require_once("$default->fileSystemRoot/lib/database/lookup.inc"); require_once("$default->fileSystemRoot/lib/System.inc"); $default->system = new System(); +// hack to set org to use +$default->organisationID = 1; + if ($default->system->initialised()) { $aSettings = array("ldapServer", "ldapRootDn", "ldapServerType", "emailServer", "emailFrom", "emailFromName", "emailAdmin", "emailAdminName", diff --git a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc index b9fd7c5..48ada9c 100644 --- a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc @@ -159,7 +159,7 @@ function renderPage($aPendingDocumentList, $aCheckedOutDocumentList, $aSubscript // some arb welcoming text goes here $oUser = & User::get($_SESSION["userID"]); $sUserName = $oUser->getName(); - $sToRender .= "\t\tHi" . (strlen($sUserName) > 0 ? " " . $sUserName : "") . ", welcome back to the MRC DMS, part of the Knowledge Tree.\n"; + $sToRender .= "\t\tHi" . (strlen($sUserName) > 0 ? " " . $sUserName : "") . ", welcome back to the " . lookupField($default->owl_organisations_table, "name", "id", $default->organisationID) . " DMS, part of the Knowledge Tree.\n"; $sToRender .= "\t\n"; // dashboard alerts