Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

Commit

Permalink
对于未设定图标的源,显示一个默认图标
Browse files Browse the repository at this point in the history
替代404错误
  • Loading branch information
kagurazakayashi committed Mar 14, 2017
1 parent ee396a0 commit afdb517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions emostore_admin_cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ function addpath($arr,$relativepath,$absolutepath) {
$newarr = [];
for ($i = 0; $i < count($arr); $i++) {
$arri = $arr[$i];
if ($arri["iconurl"] == "") {
$arri["iconurl"] = "akarin.jpg";
}
$arri["iconurl"] = $relativepath.$arri["iconurl"];
if ($absolutepath) {
$arri["iconurl"] = $absolutepath.$arri["iconurl"];
Expand Down

0 comments on commit afdb517

Please sign in to comment.