php - Changing joomlas default favicon path -
i try change joomlas default favicon , place in root of web. how can that?
according joomla documentation, html.php
looks both template
, root
folder favicon. therefor should show if put in in root
.
// try find favicon checking template , root folder $path = $directory . ds; $dirs = array( $path, jpath_base . ds ); foreach ($dirs $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;''
Comments
Post a Comment