XPressME Integration Kit

Trac

Changeset 565


Ignore:
Timestamp:
Mar 30, 2010, 4:02:23 PM (15 years ago)
Author:
toemon
Message:

MultiBlog時にプライマリーブログがなくても、モジュールメニューにプライマリーブログへのリンクが表示されるバグ修正 Fixes #323

Location:
trunk/xpressme_integration_kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r547 r565  
    10601060                $root_path = get_blog_status(1,'path'); 
    10611061                $primary_blog_id = @$current_user->primary_blog; 
     1062                if(empty($primary_blog_id)) return $ret; 
    10621063                $primary_path = get_blog_status($primary_blog_id,'path'); 
    10631064                $script = str_replace($root_path, "", $primary_path); 
  • trunk/xpressme_integration_kit/xoops_version.php

    r557 r565  
    151151                $primaryw_blog = xpress_primary_blog_link(); 
    152152                if(!empty($primaryw_blog)){ 
    153                         $modversion['sub'][6]['name'] = $primaryw_blog['title']; 
    154                         $modversion['sub'][6]['url'] = $primaryw_blog['menu_url']; 
     153                        $modversion['sub'][7]['name'] = $primaryw_blog['title']; 
     154                        $modversion['sub'][7]['url'] = $primaryw_blog['menu_url']; 
    155155                } 
    156156        } 
Note: See TracChangeset for help on using the changeset viewer.