fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6688] bkbooking: fixed url for system message


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [6688] bkbooking: fixed url for system message
Date: Tue, 21 Dec 2010 10:33:02 +0000

Revision: 6688
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6688
Author:   kjell
Date:     2010-12-21 10:33:02 +0000 (Tue, 21 Dec 2010)
Log Message:
-----------
bkbooking: fixed url for system message

Modified Paths:
--------------
    trunk/booking/inc/class.bosystem_message.inc.php

Modified: trunk/booking/inc/class.bosystem_message.inc.php
===================================================================
--- trunk/booking/inc/class.bosystem_message.inc.php    2010-12-21 10:03:32 UTC 
(rev 6687)
+++ trunk/booking/inc/class.bosystem_message.inc.php    2010-12-21 10:33:02 UTC 
(rev 6688)
@@ -27,6 +27,7 @@
                                $sql = "SELECT id, type, status, title, name, 
created, building_id FROM bb_system_message ORDER BY id DESC";
                        }
 
+                       $external_site_address = 
isset($config->config_data['external_site_address']) && 
$config->config_data['external_site_address'] ? 
$config->config_data['external_site_address'] : 
$GLOBALS['phpgw_info']['server']['webserver_url'];
                        $this->db->query($sql);
                        $data = $this->db->resultSet;
                        while ($messagedata = array_shift($data)) {
@@ -49,7 +50,7 @@
                            'contact_name' => $messagedata['name'],             
            
                                                'case_officer_name' => 
$for_case_officer_id,
                            'what' => $messagedata['title'],
-                           'link' => 
"/index.php?menuaction=booking.uisystem_message.show&id=".$messagedata['id']."&");
                        
+                           'link' => 
$external_site_address."/index.php?menuaction=booking.uisystem_message.show&id=".$messagedata['id']."&");
                 
 
                                                while($case_officer = 
array_shift($building_case_officers_data)) {
                                                        if 
($message['case_officer_name'] = $case_officer['account_id'])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]