[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6657] booking: encoding for mb_substring
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6657] booking: encoding for mb_substring |
Date: |
Wed, 08 Dec 2010 14:16:21 +0000 |
Revision: 6657
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6657
Author: sigurdne
Date: 2010-12-08 14:16:21 +0000 (Wed, 08 Dec 2010)
Log Message:
-----------
booking: encoding for mb_substring
Modified Paths:
--------------
trunk/booking/inc/class.socompleted_reservation.inc.php
Modified: trunk/booking/inc/class.socompleted_reservation.inc.php
===================================================================
--- trunk/booking/inc/class.socompleted_reservation.inc.php 2010-12-08
11:47:44 UTC (rev 6656)
+++ trunk/booking/inc/class.socompleted_reservation.inc.php 2010-12-08
14:16:21 UTC (rev 6657)
@@ -168,10 +168,10 @@
$entity['article_description'] = $building['name'] . ':
' . implode(', ', $this->get_resource_names($reservation['resources']));
if (mb_strlen($entity['article_description']) > 35) {
- $entity['article_description'] =
mb_substr($entity['article_description'], 0, 32).'...';
+ $entity['article_description'] =
mb_substr($entity['article_description'], 0, 32, 'UTF-8').'...';
}
- $entity['description'] = mb_substr($entity['from_'], 0,
-3) .' - '. mb_substr($entity['to_'], 0, -3);
+ $entity['description'] = mb_substr($entity['from_'], 0,
-3, 'UTF-8') .' - '. mb_substr($entity['to_'], 0, -3, 'UTF-8');
$entity['building_name'] = $building['name'];
$entity['building_id'] = $building['id'];
}
@@ -346,4 +346,4 @@
return 0;
}
- }
\ No newline at end of file
+ }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6657] booking: encoding for mb_substring,
Sigurd Nes <=