Skip to content

Commit a7c209e

Browse files
authored
Merge pull request #46 from nguyenanhung/develop
Release version 1.5.9.2
2 parents 7e7dd64 + 847dfcf commit a7c209e

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

helpers/url_helper.php

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -415,34 +415,9 @@ function cdn_url($uri = '')
415415
*/
416416
function images_url($url = '')
417417
{
418-
$url = str_replace('http://cdnphoto.dantri.com.vn/', 'https://cdnphoto.dantri.com.vn/', $url);
419418
$url = trim($url);
420-
if (!empty($url)) {
421-
$thumb = array(
422-
'images/system/no_avatar.jpg',
423-
'images/system/no_avatar_100x100.jpg',
424-
'images/system/no_video_available.jpg',
425-
'images/system/no_video_available_thumb.jpg',
426-
'images/system/no-image-available.jpg',
427-
'images/system/no-image-available_60.jpg',
428-
'images/system/no-image-available_330.jpg'
429-
);
430-
if (in_array($url, $thumb)) {
431-
return assets_url($url);
432-
}
433-
434-
$parseInput = parse_url($url);
435-
if (isset($parseInput['host'])) {
436-
return $url;
437-
}
438-
if (trim(mb_substr($url, 0, 12)) === 'crawler-news') {
439-
$url = trim('uploads/' . $url);
440-
}
441-
442-
return static_url($url);
443-
}
444-
445-
return $url;
419+
$url = bear_framework_image_url($url);
420+
return trim($url);
446421
}
447422
}
448423
if (!function_exists('audio_url')) {

src/BaseHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
*/
2020
class BaseHelper
2121
{
22-
const VERSION = '1.5.9.1';
23-
const LAST_MODIFIED = '2023-09-24';
22+
const VERSION = '1.5.9.2';
23+
const LAST_MODIFIED = '2023-10-05';
2424
const PROJECT_NAME = 'CodeIgniter - Basic Helper';
2525
const AUTHOR_NAME = 'Hung Nguyen';
2626
const AUTHOR_FULL_NAME = 'Hung Nguyen';

0 commit comments

Comments
 (0)