[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7250] bkbooking: fixed links in cancelation message
From: |
Kjell Arne Espedal |
Subject: |
[Fmsystem-commits] [7250] bkbooking: fixed links in cancelation message so that the stay in booking |
Date: |
Tue, 03 May 2011 12:45:40 +0000 |
Revision: 7250
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7250
Author: kjell
Date: 2011-05-03 12:45:39 +0000 (Tue, 03 May 2011)
Log Message:
-----------
bkbooking: fixed links in cancelation message so that the stay in booking
Modified Paths:
--------------
trunk/bookingfrontend/inc/class.uiallocation.inc.php
trunk/bookingfrontend/inc/class.uibooking.inc.php
Modified: trunk/bookingfrontend/inc/class.uiallocation.inc.php
===================================================================
--- trunk/bookingfrontend/inc/class.uiallocation.inc.php 2011-05-03
12:30:32 UTC (rev 7249)
+++ trunk/bookingfrontend/inc/class.uiallocation.inc.php 2011-05-03
12:45:39 UTC (rev 7250)
@@ -46,8 +46,9 @@
$system_message['phone'] = ' ';
$system_message['email'] = ' ';
$system_message['title'] = lang('Cancelation of
allocation from')." ".$allocation['organization_name'];
-
- $system_message['message'] =
$system_message['message']."\n\n".lang('To cancel allocation use this link')."
- <a href='".self::link(array('menuaction' =>
'booking.uiallocation.delete','allocation_id' => $allocation['id'], 'outseason'
=> $outseason, 'recurring' => $recurring, 'repeat_until' => $repeat_until,
'field_interval' => $field_interval))."'>".lang('Delete')."</a>";
+ $link = self::link(array('menuaction' =>
'booking.uiallocation.delete','allocation_id' => $allocation['id'], 'outseason'
=> $outseason, 'recurring' => $recurring, 'repeat_until' => $repeat_until,
'field_interval' => $field_interval));
+ $link = mb_strcut($link,16,strlen($link));
+ $system_message['message'] =
$system_message['message']."\n\n".lang('To cancel allocation use this link')."
- <a href='".$link."'>".lang('Delete')."</a>";
$receipt =
$this->system_message_bo->add($system_message);
$this->redirect(array('menuaction' =>
'bookingfrontend.uibuilding.schedule', 'id' => $system_message['building_id']));
Modified: trunk/bookingfrontend/inc/class.uibooking.inc.php
===================================================================
--- trunk/bookingfrontend/inc/class.uibooking.inc.php 2011-05-03 12:30:32 UTC
(rev 7249)
+++ trunk/bookingfrontend/inc/class.uibooking.inc.php 2011-05-03 12:45:39 UTC
(rev 7250)
@@ -592,9 +592,10 @@
$system_message['phone'] = ' ';
$system_message['email'] = ' ';
$system_message['title'] = lang('Cancelation of
booking from')." ".$booking['group_name'];
-
- $system_message['message'] =
$system_message['message']."\n\n".lang('To cancel booking use this link')." -
<a href='".self::link(array('menuaction' => 'booking.uibooking.delete','id' =>
$booking['id'], 'outseason' => $outseason, 'recurring' => $recurring,
'repeat_until' => $repeat_until, 'field_interval' => $field_interval,
'delete_allocation' => $delete_allocation))."'>".lang('Delete')."</a>";
+ $link = self::link(array('menuaction' =>
'booking.uibooking.delete','id' => $booking['id'], 'outseason' => $outseason,
'recurring' => $recurring, 'repeat_until' => $repeat_until, 'field_interval' =>
$field_interval, 'delete_allocation' => $delete_allocation));
+ $link = mb_strcut($link,16,strlen($link));
+ $system_message['message'] =
$system_message['message']."\n\n".lang('To cancel booking use this link')." -
<a href='".$link."'>".lang('Delete')."</a>";
$receipt =
$this->system_message_bo->add($system_message);
$this->redirect(array('menuaction' =>
'bookingfrontend.uibuilding.schedule', 'id' => $system_message['building_id']));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7250] bkbooking: fixed links in cancelation message so that the stay in booking,
Kjell Arne Espedal <=