Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 07 Aug 2002 04:01:00 | postnuke_official/html/includes | pnTemplate.php,1.44,1.45 | Paul Rosania |
| pnBlockTemplate() works better now | |||
Update of /home/cvsroot/postnuke_official/html/includes
In directory ns7.hostnuke.net:/tmp/cvs-serv24821/includes
Modified Files:
pnTemplate.php
Log Message:
pnBlockTemplate() works better now
Index: pnTemplate.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/includes/pnTemplate.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** pnTemplate.php 7 Aug 2002 03:31:31 -0000 1.44
--- pnTemplate.php 7 Aug 2002 04:00:58 -0000 1.45
***************
*** 687,690 ****
--- 687,695 ----
}
+ $blockinfo = pnModGetInfo(pnModGetIDFromName($module));
+ if (!isset($blockinfo) && pnExceptionMajor() != PN_NO_EXCEPTION) return;
+
+ $moddir = $blockinfo['directory'];
+
// Try theme template
$template_sourcefile = "$theme/modules/$moddir/blocks/$block" . (isset($template) ? "-$template.pnt" : '.pnt');
***************
*** 702,706 ****
if (!file_exists($template_sourcefile)) {
! $msg = pnML('Could not locate template source for function \'#(1)\' in module \'#(2)\', missing file path is: \'#(3)\'.', $func, $moddir, $template_sourcefile);
pnExceptionSet(PN_SYSTEM_EXCEPTION, 'UNKNOWN',
new SystemException(__FILE__.'('.__LINE__.'): '.$msg));
--- 707,711 ----
if (!file_exists($template_sourcefile)) {
! $msg = pnML('Could not locate template source for block \'#(1)\' in module \'#(2)\', missing file path is: \'#(3)\'.', $block, $module, $template_sourcefile);
pnExceptionSet(PN_SYSTEM_EXCEPTION, 'UNKNOWN',
new SystemException(__FILE__.'('.__LINE__.'): '.$msg));
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |