Plugin Directory

Changeset 561681


Ignore:
Timestamp:
06/21/2012 10:52:25 AM (14 years ago)
Author:
technosis
Message:

fixing theme path issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • templ33t/branches/01_02_handling_posts/templ33t_object.php

    r561679 r561681  
    493493       
    494494        $themes = get_themes();
    495         $theme_data = get_theme_data(get_theme_root() . '/' . $theme . '/style.css');
     495        $theme_dir = get_theme_root() . DIRECTORY_SEPARATOR . $theme . DIRECTORY_SEPARATOR;
     496        $theme_data = get_theme_data($theme_dir . 'style.css');
    496497       
    497498        $templates = array();
     
    511512
    512513        $files = array('home.php', 'page.php', 'posts.php', 'single.php');
    513         foreach($templates as $file) {
     514        foreach($files as $file) {
    514515            if(file_exists($theme_dir . $file)) {
    515516                $templates[] = $file;
Note: See TracChangeset for help on using the changeset viewer.