ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Validate External Links/validate_external_links.sh
(Generate patch)

Comparing Validate External Links/validate_external_links.sh (file contents):
Revision 1182 by iritscen, Sun May 7 19:53:19 2023 UTC vs.
Revision 1183 by iritscen, Tue May 16 01:10:09 2023 UTC

# Line 779 | Line 779 | for LINE in `cat "$LINKS_FILE"`; do
779     if [ $LINK_NUM -lt $URL_START ]; then
780        continue
781     fi
782 <
782 >  
783     # Stop if we are at the limit declared for testing purposes
784     if [ $URL_LIMIT -gt 0 ] && [ $LINK_NUM -gt $URL_LIMIT ]; then
785        FINISHED_LIST="limit"
# Line 1252 | Line 1252 | for LINE in `cat "$LINKS_FILE"`; do
1252        # Notify reader if we can use an intrawiki link for this URL
1253        if [ $STATUS == "EI" ]; then
1254           INTRA_PAGE=${URL#*://*/}
1255 +         # If INTRA_PAGE starts with Category:, File: or Image:, prefix it with a ':' to make it a wikilink
1256 +         if [[ $INTRA_PAGE == Category:* ]] || [[ $INTRA_PAGE == File:* ]]|| [[ $INTRA_PAGE == Image:* ]]; then
1257 +            INTRA_PAGE=:${INTRA_PAGE}
1258 +         fi
1259           valPrint ts "  Just use [[$INTRA_PAGE]]"
1260           valPrint rs "          Just use [[$INTRA_PAGE]]"
1261           valPrint hs "<tr><td colspan=\"2\" align=\"right\">Just use</td><td>[[$INTRA_PAGE]]</td></tr>"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)