Ignore:
Timestamp:
Jul 16, 2009, 12:43:16 AM (15 years ago)
Author:
tiico
Message:

some minor corrections
add block.tpl from pwg_stuff (for flopure)
add prometeus module (javascript)
[TO BE COMPLETED]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Flash_Gallery/include/class.inc.php

    r3531 r3599  
    254254
    255255    if (isset($modulename))
     256        {
    256257                $dir = FLASHGAL_PATH . 'modules/'.$modulename .'/';
     258                return $dir.$file;
     259        }
    257260        else
     261        {
    258262                $dir = FLASHGAL_PATH . 'template/';
    259 
     263                $theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file;
     264                $template_file = $dir.$user['template'].'/'.$file;
     265            if (file_exists($theme_file))
     266            {
     267              return $theme_file;
     268            }
     269            elseif (file_exists($template_file))
     270            {
     271              return $template_file;
     272            }
     273            else
     274                {
     275                        return $dir.$file;
     276                }
     277        }
    260278//                      echo "dir=".$dir.$file;
    261     return $dir.$file;
    262279  }
    263280}
Note: See TracChangeset for help on using the changeset viewer.