XPressME Integration Kit

Trac

Changeset 432 for trunk


Ignore:
Timestamp:
Nov 10, 2009, 11:53:43 PM (15 years ago)
Author:
toemon
Message:

r422の処理でImpressCMSやXOOPS2.3.3でFatal errorが発生するバグ修正 Fixes #244

Location:
trunk/xpressme_integration_kit/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/xpress_breadcrumbs.php

    r59 r432  
    11<?php 
     2function get_breadcrumbs(){ 
    23//      $xoops_breadcrumbs[0] = array( 'name' => get_bloginfo('description') , 'url' => get_settings('home')); 
    34        $xoops_breadcrumbs[0] = array( 'name' => get_bloginfo('name') , 'url' => get_settings('home')); 
     
    4647                } 
    4748        } 
    48         $xoopsTpl->assign('xoops_breadcrumbs', $xoops_breadcrumbs); 
     49        return $xoops_breadcrumbs; 
     50} 
    4951?> 
  • trunk/xpressme_integration_kit/include/xpress_render.php

    r431 r432  
    157157         
    158158        require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 
    159          
     159        $xoops_breadcrumbs = get_breadcrumbs(); 
     160 
    160161        xpress_remake_global_for_permlink(); 
    161162        $mydirname = basename(dirname(dirname(__FILE__))); 
    162163        include $xoops_config->xoops_root_path ."/header.php"; 
     164        $xoopsTpl->assign('xoops_breadcrumbs', $xoops_breadcrumbs); 
    163165        $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 
    164166        $page_title = $GLOBALS["xoopsModule"]->getVar("name"). ' &raquo;'. get_xpress_title($contents); 
Note: See TracChangeset for help on using the changeset viewer.