Merge pull request !82 from 明明海海+/master
This commit is contained in:
commit
322a5ee396
|
@ -17,7 +17,7 @@ function build_cache_relatedlink() {
|
|||
$data = array();
|
||||
$query = C::t('common_relatedlink')->range();
|
||||
foreach($query as $link) {
|
||||
if(substr($link['url'], 0, 7) != 'http://') {
|
||||
if(!(strpos($link['url'], '://'))) {
|
||||
$link['url'] = 'http://'.$link['url'];
|
||||
}
|
||||
$data[] = $link;
|
||||
|
|
Loading…
Reference in New Issue