Php 更改joomlas默认favicon路径
我试图改变joomlas默认的favicon,我想把它放在我网站的根目录中。我该怎么做呢?根据,Php 更改joomlas默认favicon路径,php,location,favicon,joomla3.1,Php,Location,Favicon,Joomla3.1,我试图改变joomlas默认的favicon,我想把它放在我网站的根目录中。我该怎么做呢?根据,html.php查找favicon的模板和根文件夹。因此,如果您只需在根目录中输入,它就会显示出来 // Try to find a favicon by checking the template and root folder $path = $directory . DS; $dirs = array( $path, JPATH_BASE . DS );
html.php
查找favicon的模板和根文件夹。因此,如果您只需在根目录中输入,它就会显示出来
// Try to find a favicon by checking the template and root folder
$path = $directory . DS;
$dirs = array( $path, JPATH_BASE . DS );
foreach ($dirs as $dir ) {
$icon = $dir . 'favicon.ico';
if (file_exists( $icon )) {
$path = str_replace( JPATH_BASE . DS, '', $dir );
$path = str_replace( '\\', '/', $path );
$this->addFavicon( JURI::base(true).'/'.$path . 'favicon.ico' );
break;''