XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 7, 2009, 7:14:16 PM (15 years ago)
Author:
toemon
Message:

ページブロックのオプション$exclude_treeを数値から文字列に変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/blocks/page_block.php

    r195 r205  
    2222                $sort_order = empty( $options[3] ) ? 'asc' : $options[3] ; 
    2323                $exclude = empty( $options[4] ) ? '' : $options[4] ; 
    24                 $exclude_tree = !is_numeric( $options[5] ) ? 0 : $options[5] ; 
     24                $exclude_tree = empty( $options[5] ) ? '' : $options[5] ; 
    2525                $includes = empty( $options[6] ) ? '' : $options[6] ; 
    2626                $depth = !is_numeric( $options[7] ) ? 0 : $options[7] ; 
     
    9191                 
    9292                $form .= _MB_XP2_PAGE_EXCLUDE . "  <input type='text' name='options[4]' value='" . $exclude . "' size ='60' /><br />\n"; 
    93                 $form .= _MB_XP2_PAGE_EXCLUDE_TREE . "  <input type='text' name='options[5]' value='" . $exclude_tree . "' size ='8' /><br />\n"; 
     93                $form .= _MB_XP2_PAGE_EXCLUDE_TREE . "  <input type='text' name='options[5]' value='" . $exclude_tree . "' size ='60' /><br />\n"; 
    9494                $form .= _MB_XP2_PAGE_INCLUDE . "  <input type='text' name='options[6]' value='" . $includes . "' size ='60' /><br />\n"; 
    9595                $form .= _MB_XP2_PAGE_DEPTH . "  <input type='text' name='options[7]' value='" . $depth . "' size ='8' /><br />"; 
Note: See TracChangeset for help on using the changeset viewer.