Changeset 10632
- Timestamp:
- Apr 26, 2011, 10:52:16 PM (13 years ago)
- Location:
- extensions/PersoFavicon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PersoFavicon/admin/admin.php
r7767 r10632 41 41 )); 42 42 43 $filename = PHPWG_ROOT_PATH .'local/favicon.ico';43 $filename = PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'favicon.ico'; 44 44 if (file_exists($filename)) {$template->assign('ICO',$filename);} 45 45 … … 47 47 { 48 48 49 $content_dir = PHPWG_ROOT_PATH .'local/';49 $content_dir = PHPWG_ROOT_PATH.PWG_LOCAL_DIR; 50 50 $tmp_file = $_FILES['pfi']['tmp_name']; 51 51 if( !is_uploaded_file($tmp_file) ) … … 71 71 } 72 72 73 $filename = PHPWG_ROOT_PATH .'local/favicon.ico';73 $filename = PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'favicon.ico'; 74 74 if (file_exists($filename)) 75 75 { -
extensions/PersoFavicon/main.inc.php
r7767 r10632 42 42 if (!empty($favicon_name)) 43 43 { 44 $replacement = '<link rel="shortcut icon" type="image/x-icon" href=" {$ROOT_URL}local/'.$favicon_name.'.ico">';44 $replacement = '<link rel="shortcut icon" type="image/x-icon" href="'.PHPWG_ROOT_PATH.PWG_LOCAL_DIR.$favicon_name.'.ico">'; 45 45 } 46 46 else 47 47 { 48 $replacement = '<link rel="shortcut icon" type="image/x-icon" href=" {$ROOT_URL}local/favicon.ico">';48 $replacement = '<link rel="shortcut icon" type="image/x-icon" href="'.PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'favicon.ico">'; 49 49 } 50 50 return preg_replace($search, $replacement, $content); 51 51 } 52 52 53 53 ?>
Note: See TracChangeset
for help on using the changeset viewer.