13 번째 수정본 소스 보기 : UseModWiki소스수정/GetFullLinkList함수
마지막으로 [b]
-- Loading page list... --
내용출력
로그인[l]
Diary
[f]
최근변경내역
[r]
페이지목록[i]
횡설수설[2]
게시판[3]
링크
수정할 수 없습니다: UseModWiki소스수정/GetFullLinkList함수 는 읽기 전용 페이지입니다.
== GetFullLinkList() 함수의 버그 수정 == * [[/FullLinkList]] 버그와 동일한 문제 * "/하위페이지" 형식의 링크의 경우, 페이지가 존재함에도 불구하고 존재하지 않는 것처럼 인식되는 문제 해결 : {{{#!vim perl sub GetFullLinkList { ... foreach $link (@links) { $seen{$link}++; if (($unique > 0) && ($seen{$link} != 1)) { next; } ### 다음 단락을 수정 # if (($exists == 0) && ($pgExists{$link} == 1)) { # next; # } # if (($exists == 1) && ($pgExists{$link} != 1)) { # next; # } my $link2 = $link; $link2 = (split ('/',$name))[0]."$link" if ($link =~ /^\//); if (($exists == 0) && ($pgExists{$link2} == 1)) { next; } if (($exists == 1) && ($pgExists{$link2} != 1)) { next; } ### 여기까지 if (($search ne "") && !($link =~ /$search/)) { next; } ... } }}} ---- [[위키위키분류]] --- '''Q.''' If Sub DoPostMain execute &SaveLinkFile($id); ... is mandatory &SaveLinkFile($name); at Sub DoMaintain?. (2009-07-29) Thanks in advance. I hope not to be spending time. --JuanmaMP (aka,
TheForeign
;): from a south city of a country in southern Europe; (twice south) : Maybe not. After someone applies that update ([[/링크를별도의화일로관리]]), he/she needs a way to extract all links in "all pages" and save them to .lnk files at once. I made "maintain" do it. Very simple reason. :-D
::Yep, there's a moment of singularity (when the patch is applied). Thanks for the link, very useful. ::Did you know why I did not see that link before ([[/링크를별도의화일로관리]])?. Because I usually begin to read page titles with a few words in English but this link was all in Korean!. :)) (afaik, Google returns translations from Korean pretty surreal. It is a little desperate :)) ). Thanks. --JuanmaMP --- One suggest: What about this tweak? In MacroAllPagesFrom, MacroAllPagesTo and MacroAllPagesFrom adding a condition of type if (&PageIsHidden($id)) ... in order to be excluded. Thanks. --JuanmaMP : Currently, those two macros doesn't show any hidden pages in their results. Can you see the name of a hidden page? Please check whether you have admin privilege. If you still can see any problem even when you don't login in wiki, please tell me how I can reproduce that problem. I'd be appreciated.
:: Ok, there's no Oddities by now. I was wondering for attempt by trial and error or if an admin decide to hide a page, accesible before .... At this moment AllPagesList is the shield (the only one in the above subject). :: Regards.
--- When I applied action "links", can appear false positive for camelcase
(ie [http://www.google.com GooGle]
, count Google as wiki-page (in action links). This left Inherited also for action "linkto"? : oops, I haven't noticed it until now. Thank you for reporting, but I am somewhat busy recently and I'm not sure when I can fix it. ^^;;
UseModWiki소스수정/GetFullLinkList함수
페이지로 돌아가기 |
다른 수정본 보기