Posted by TinTin_Pinguin on May 8, 2007 at 5:25pm
2 followers
Jump to:
| Project: | Page Title |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
After install, creating a new site in "sites" folder will generate the " page_title_page_get_title()" error, the front page is unavailable to setup.
I think the error is cused by the fact that the module is not enabled (yet), so the function is not available.
My dirty fix was to put
<?php
if (function_exists('print page_title_page_get_title()')) { print page_title_page_get_title();}else {print $head_title;}
?>in the tpl.php theme file.
I did not tried if the bug appear in the "template.php" instalation.
I am not a php programmer, so probably this fix is not the best option, I hope you'll find a better one.
Comments
#1
Ooops, the right code is :
<?phpif (function_exists('page_title_page_get_title')) { print page_title_page_get_title();}else {print $head_title;}
?>
Now tested also :P
Mea clupa
TinTin
#2
Hehe - always the way - the error is found soon after posting about it :-)
#3
Hehe - always the way - the error is found soon after posting about it :-)