From bdd3caa101e8908f0b5d5f849b30264f291f86f4 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sun, 16 Oct 2016 20:46:27 +0300 Subject: [PATCH] Increate cut length from 50 to 70, use multibyte strlen --- schedule/parse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schedule/parse.php b/schedule/parse.php index e61ce4d..78d05dd 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -9,7 +9,7 @@ $data = require __DIR__ . DIRECTORY_SEPARATOR . 'load.php'; -$cut_len = 50; +$cut_len = 70; $cfp_url = 'http://cfp.openfest.org'; $time = 0; $date = 0; @@ -57,7 +57,7 @@ foreach ($data['slots'] as $slot_id => $slot) { $lines[] = 'TBA'; } else { - $title = mb_substr($event['title'], 0, $cut_len) . (strlen($event['title']) > $cut_len ? '...' : ''); + $title = mb_substr($event['title'], 0, $cut_len) . (mb_strlen($event['title']) > $cut_len ? '...' : ''); $speakers = ''; if (count($event['participant_user_ids']) > 0) {