Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -933,16 +933,16 @@ |
934 | 934 | } |
935 | 935 | |
936 | 936 | function magicLinkCallback( $m ) { |
937 | | - if ( isset( $m[1] ) && strval( $m[1] ) !== '' ) { |
| 937 | + if ( isset( $m[1] ) && $m[1] !== '' ) { |
938 | 938 | # Skip anchor |
939 | 939 | return $m[0]; |
940 | | - } elseif ( isset( $m[2] ) && strval( $m[2] ) !== '' ) { |
| 940 | + } elseif ( isset( $m[2] ) && $m[2] !== '' ) { |
941 | 941 | # Skip HTML element |
942 | 942 | return $m[0]; |
943 | | - } elseif ( isset( $m[3] ) && strval( $m[3] ) !== '' ) { |
| 943 | + } elseif ( isset( $m[3] ) && $m[3] !== '' ) { |
944 | 944 | # Free external link |
945 | 945 | return $this->makeFreeExternalLink( $m[0] ); |
946 | | - } elseif ( isset( $m[4] ) && strval( $m[4] ) !== '' ) { |
| 946 | + } elseif ( isset( $m[4] ) && $m[4] !== '' ) { |
947 | 947 | # RFC or PMID |
948 | 948 | if ( substr( $m[0], 0, 3 ) === 'RFC' ) { |
949 | 949 | $keyword = 'RFC'; |
— | — | @@ -960,7 +960,7 @@ |
961 | 961 | $sk = $this->mOptions->getSkin(); |
962 | 962 | $la = $sk->getExternalLinkAttributes( $url, $keyword.$id ); |
963 | 963 | return "<a href=\"{$url}\"{$la}>{$keyword} {$id}</a>"; |
964 | | - } elseif ( isset( $m[5] ) && strval( $m[5] ) !== '' ) { |
| 964 | + } elseif ( isset( $m[5] ) && $m[5] !== '' ) { |
965 | 965 | # ISBN |
966 | 966 | $isbn = $m[5]; |
967 | 967 | $num = strtr( $isbn, array( |