From 4c5e97cb2e4f20a3eba32b9049ee0c6b24e0c443 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 12 Nov 2018 14:17:59 +0800 Subject: [PATCH] * code for task #5062. --- module/doc/view/view.html.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/doc/view/view.html.php b/module/doc/view/view.html.php index 54349d7f2a..0282842b8f 100644 --- a/module/doc/view/view.html.php +++ b/module/doc/view/view.html.php @@ -88,10 +88,12 @@ { $parsedUrl = parse_url($url); $urlDomain = $parsedUrl['scheme'] . '://' . $parsedUrl['host']; - $response = common::http($url); + + $title = ''; + $response = common::http($url); preg_match_all('/(.*)<\/title>/Ui', $response, $out); - $title = ''; if(isset($out[1][0])) $title = $out[1][0]; + echo "<div id='urlCard'>"; echo "<div class='url-icon'><img src='{$urlDomain}/favicon.ico' width='45' height='45' /></div>"; echo "<div class='url-content'>";