WordPress.org

Plugin Directory

Changeset 337632


Ignore:
Timestamp:
01/26/11 23:09:36 (3 years ago)
Author:
JustinSainton
Message:

Hopefully fixing Visser's issue at http://code.google.com/p/wp-e-commerce/issues/detail?id=302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-includes/theme.functions.php

    r337608 r337632  
    10611061    do_action('wpsc_swap_the_template'); 
    10621062    if($wp_query->query_vars['post_type'] == 'wpsc-product'){ 
    1063         if (isset($wp_query->post_count) && 1 == $wp_query->post_count && file_exists(TEMPLATEPATH.'/single-wpsc-product.php')){ 
    1064             include(TEMPLATEPATH. '/single-wpsc-product.php'); 
     1063        if (isset($wp_query->post_count) && 1 == $wp_query->post_count && file_exists(STYLESHEETPATH.'/single-wpsc-product.php')){ 
     1064            include(STYLESHEETPATH. '/single-wpsc-product.php'); 
    10651065            exit(); 
    1066         }elseif(file_exists(TEMPLATEPATH.'/page.php')){ 
    1067             include(TEMPLATEPATH. '/page.php'); 
     1066        }elseif(file_exists(STYLESHEETPATH.'/page.php')){ 
     1067            include(STYLESHEETPATH. '/page.php'); 
    10681068            exit(); 
    1069         }elseif(file_exists(TEMPLATEPATH.'/single.php')){ 
    1070             include(TEMPLATEPATH. '/single.php'); 
     1069        }elseif(file_exists(STYLESHEETPATH.'/single.php')){ 
     1070            include(STYLESHEETPATH. '/single.php'); 
    10711071            exit(); 
    1072         }elseif(file_exists(TEMPLATEPATH.'/index.php')){ 
    1073             include(TEMPLATEPATH. '/index.php'); 
     1072        }elseif(file_exists(STYLESHEETPATH.'/index.php')){ 
     1073            include(STYLESHEETPATH. '/index.php'); 
    10741074            exit();      
    10751075        } 
Note: See TracChangeset for help on using the changeset viewer.