Changeset 24572

Show
Ignore:
Timestamp:
11/21/08 20:40:01 (5 years ago)
Author:
yappo
Message:

not found の code に $func を引数で渡すよ

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Yacafi/trunk/lib/Yacafi.pm

    r23697 r24572  
    191191            $response = $code->(); 
    192192        } else { 
    193             $response = ref($NOT_FOUND_CODE) eq 'CODE' ? $NOT_FOUND_CODE->() : $NOT_FOUND_CODE; 
     193            $response = ref($NOT_FOUND_CODE) eq 'CODE' ? $NOT_FOUND_CODE->($func) : $NOT_FOUND_CODE; 
    194194        } 
    195195    };