File tree Expand file tree Collapse file tree 2 files changed +4
-29
lines changed Expand file tree Collapse file tree 2 files changed +4
-29
lines changed Original file line number Diff line number Diff 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}
448423if (!function_exists ('audio_url ' )) {
Original file line number Diff line number Diff line change 1919 */
2020class 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 ' ;
You can’t perform that action at this time.
0 commit comments