Changeset 10632


Ignore:
Timestamp:
Apr 26, 2011, 10:52:16 PM (9 years ago)
Author:
ddtddt
Message:

[extensions] - PersoFavicon - remove /local/

Location:
extensions/PersoFavicon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/PersoFavicon/admin/admin.php

    r7767 r10632  
    4141          ));
    4242
    43 $filename = PHPWG_ROOT_PATH .'local/favicon.ico';
     43$filename = PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'favicon.ico';
    4444if (file_exists($filename)) {$template->assign('ICO',$filename);}
    4545
     
    4747{
    4848
    49 $content_dir = PHPWG_ROOT_PATH .'local/';       
     49$content_dir = PHPWG_ROOT_PATH.PWG_LOCAL_DIR;   
    5050$tmp_file = $_FILES['pfi']['tmp_name'];
    5151  if( !is_uploaded_file($tmp_file) )
     
    7171        }       
    7272
    73 $filename = PHPWG_ROOT_PATH .'local/favicon.ico';
     73$filename = PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'favicon.ico';
    7474if (file_exists($filename))
    7575        {
  • extensions/PersoFavicon/main.inc.php

    r7767 r10632  
    4242        if (!empty($favicon_name))
    4343                {
    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">';
    4545                }
    4646        else
    4747                {
    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">';
    4949                }
    5050  return preg_replace($search, $replacement, $content);
    5151 }
    52 
     52 
    5353?>
Note: See TracChangeset for help on using the changeset viewer.