viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/controllers/components/crawl_component.php b/controllers/components/crawl_component.php index e54e71789..31fffbfc1 100644 --- a/controllers/components/crawl_component.php +++ b/controllers/components/crawl_component.php @@ -808,7 +808,6 @@ class CrawlComponent extends Component implements CrawlConstants foreach($crawls as $crawl) { if(strlen($crawl['DESCRIPTION']) > 0 ) { $data['available_options'][$crawl['CRAWL_TIME']] = - tl('crawl_component_previous_crawl')." ". $crawl['DESCRIPTION']; } } diff --git a/views/helpers/options_helper.php b/views/helpers/options_helper.php index d9f7b83c6..835480e07 100755 --- a/views/helpers/options_helper.php +++ b/views/helpers/options_helper.php @@ -65,6 +65,7 @@ class OptionsHelper extends Helper */ function render($id, $name, $options, $selected, $onchange_submit = false) { + $word_wrap_len = 28; ?> <select id="<?php e($id);?>" name="<?php e($name);?>" <?php if($onchange_submit) { @@ -76,6 +77,9 @@ class OptionsHelper extends Helper ?> <option value="<?php e($value); ?>" <?php if($value== $selected) { e('selected="selected"'); } + if(MOBILE && strlen($text) > $word_wrap_len + 3) { + $text = substr($text, 0, $word_wrap_len)."..."; + } ?>><?php e($text); ?></option> <?php } @@ -85,4 +89,4 @@ class OptionsHelper extends Helper } } -?> \ No newline at end of file +?>