[첫화면으로]UseModWiki소스수정/편집가이드

마지막으로 [b]

일부 매크로 사용시 페이지의 편집 시각이 제대로 나오지 않는 문제 해결

...
# Note: $NotifyDefault is kept because it was a config variable in 0.90
# Other global variables:
use vars qw(%Page %Section %Text %InterSite %SaveUrl %SaveNumUrl
    %KeptRevisions %UserCookie %SetCookie %UserData %IndexHash %Translate
    %LinkIndex $InterSiteInit $SaveUrlIndex $SaveNumUrlIndex $MainPage
    $OpenPageName @KeptList @IndexList $IndexInit
    $q $Now $UserID $TimeZoneOffset $ScriptName $BrowseCode $OtherCode);

###############
### added by gypark
### $Sec_Revision 과 $Sec_Ts 변수를 추가
use vars qw(%RevisionTs $FS_lt $FS_gt $StartTime $Sec_Revision $Sec_Ts);
###
###############
...

sub BrowsePage {
    ...
    if ($revision ne '') {
        &OpenKeptRevisions('text_default');
        $openKept = 1;
        if (!defined($KeptRevisions{$revision})) {
            $goodRevision = '';
        } else {
            &OpenKeptRevision($revision);
        }
    }
###############
### added by gypark
### 매크로가 들어간 페이지의 편집가이드 문제 해결
    $Sec_Revision = $Section{'revision'};
    $Sec_Ts = $Section{'ts'};
###
###############
    $newText = $Text{'text'};     # For differences
    # Handle a single-level redirect
    ...
}

sub GetEditGuide {
    ...
### 다음 라인을 수정
#   if ($Section{'revision'} > 0) {
    if ($Sec_Revision > 0) {
###
        $result .= '<br>';
        if ($rev eq '') {  # Only for most current rev
            $result .= T('Last edited');
        } else {
            $result .= T('Edited');
        }
### 다음 라인을 수정
#       $result .= ' ' . &TimeToText($Section{ts});
        $result .= ' ' . &TimeToText($Sec_Ts);
###
    ...
}


위키위키분류

마지막 편집일: 2007-1-8 12:19 pm (변경사항 [d])
714 hits | Permalink | 변경내역 보기 [h] | 페이지 소스 보기