ansonphong / postworld

Wordpress Theme Development Framework
GNU General Public License v2.0
7 stars 0 forks source link

pw_get_templates() Panels - Returns Array.html #50

Closed ansonphong closed 10 years ago

ansonphong commented 10 years ago

Hi Haidy, You can see the issue in this case : Make a file theme-dir/postworld/templates/panels/load_feed_A1.html

json_encode(pw_get_templates(array('panels' => array('load_feed_A1'))));

Produces :

{"panels":{"load_feed_A1":"http:\/\/localhost:8888\/wp-content\/themes\/RSV2\/postworld\/templates\/panels\/Array.html"}}

You will notice that the filename is Array.html, with 'Array' instead of the template_id.

hmikhail commented 10 years ago

issue solved