Plugin Directory

Changeset 532173


Ignore:
Timestamp:
04/17/2012 07:31:06 AM (14 years ago)
Author:
Trendwerk
Message:

Removed some PHP notices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multiple-content-blocks/trunk/multiple_content.php

    r526706 r532173  
    3737    //check which template is used
    3838    global $post;
    39     $fileToRead = get_template_directory_uri().'/'.$post->page_template;
     39   
     40    if(isset($post->page_template)) {
     41        $fileToRead = get_template_directory_uri().'/'.$post->page_template;
     42    } else {
     43        $fileToRead = get_template_directory_uri().'/';
     44    }
    4045   
    4146    //read the template
     
    201206    }
    202207   
     208    if(!isset($tagContents)) $tagContents = '';
     209   
    203210    return $tagContents;
    204211}
Note: See TracChangeset for help on using the changeset viewer.