Changeset 749


Ignore:
Timestamp:
Mar 12, 2005, 11:51:08 AM (19 years ago)
Author:
plg
Message:
  • no use of "realpath" function anymore : this function is too often buggy and returns nothing (crash of template system as consequence...). The use of this function was not essential
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r747 r749  
    261261  while ($file = readdir($dir))
    262262  {
    263     $path = realpath(PHPWG_ROOT_PATH.'language/'.$file);
     263    $path = PHPWG_ROOT_PATH.'language/'.$file;
    264264    if (is_dir($path) and !is_link($path) and file_exists($path.'/iso.txt'))
    265265    {
  • trunk/include/template.php

    r687 r749  
    272272      if (substr($filename, 0, 1) != '/')
    273273      {
    274         $filename = realpath($this->root . '/' . $filename);
     274        $filename = $this->root.'/'.$filename;
    275275      }
    276276     
  • trunk/install.php

    r682 r749  
    200200}
    201201
    202 if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language . '/install.lang.php')) )
     202if (!file_exists(PHPWG_ROOT_PATH.'language/'.$language.'/install.lang.php'))
    203203{
    204204  $language = 'en_UK.iso-8859-1';
Note: See TracChangeset for help on using the changeset viewer.