Browse Source

System update (developers cut)

markseu 9 năm trước cách đây
mục cha
commit
d85d28b13d
3 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. BIN
      media/images/picture.jpg
  2. 3 2
      system/plugins/core.php
  3. 0 0
      system/themes/icon.png

BIN
media/images/picture.jpg


+ 3 - 2
system/plugins/core.php

@@ -288,6 +288,7 @@ class YellowCore
 				$fileName = $this->config->get("configDir").$this->config->get("robotsFile");
 			}
 		}
+		if($location == "/favicon.ico") $fileName = $this->config->get("themeDir").$this->config->get("iconFile");
 		if(empty($fileName)) $fileName = $this->lookup->findFileFromLocation($location);
 		return array($serverScheme, $serverName, $base, $location, $fileName);
 	}
@@ -794,10 +795,10 @@ class YellowPage
 				$this->yellow->config->get("themeLocation").$this->get("theme").".js";
 				$output .= "<script type=\"text/javascript\" src=\"".htmlspecialchars($location)."\"></script>\n";
 			}
-			if(is_file($this->yellow->config->get("imageDir").$this->yellow->config->get("iconFile")))
+			if(is_file($this->yellow->config->get("themeDir").$this->yellow->config->get("iconFile")))
 			{
 				$location = $this->yellow->config->get("serverBase").
-				$this->yellow->config->get("imageLocation").$this->yellow->config->get("iconFile");
+				$this->yellow->config->get("themeLocation").$this->yellow->config->get("iconFile");
 				$contentType = $this->yellow->toolbox->getMimeContentType($this->yellow->config->get("iconFile"));
 				$output .= "<link rel=\"shortcut icon\" type=\"$contentType\" href=\"".htmlspecialchars($location)."\" />\n";
 			}

+ 0 - 0
media/images/icon.png → system/themes/icon.png