XPressME Integration Kit

Trac


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:
branches/Ver2.1/xpressme_integration_kit/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.1/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?> 
  • branches/Ver2.1/xpressme_integration_kit/include/xpress_render.php

    r422 r432  
    151151         
    152152        require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 
    153          
     153        $xoops_breadcrumbs = get_breadcrumbs(); 
     154 
    154155        xpress_remake_global_for_permlink(); 
    155156        $mydirname = basename(dirname(dirname(__FILE__))); 
    156157        include $xoops_config->xoops_root_path ."/header.php"; 
     158        $xoopsTpl->assign('xoops_breadcrumbs', $xoops_breadcrumbs); 
    157159        $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 
    158160        $page_title = $GLOBALS["xoopsModule"]->getVar("name"). ' &raquo;'. get_xpress_title($contents); 
Note: See TracChangeset for help on using the changeset viewer.