*/
function makeSizeLinkObj( $size, $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
global $wgUser;
- $threshold = IntVal( $wgUser->getOption( 'stubthreshold' ) );
+ $threshold = intval( $wgUser->getOption( 'stubthreshold' ) );
if( $size < $threshold ) {
return $this->makeStubLinkObj( $nt, $text, $query, $trail, $prefix );
} else {
if( $img->exists() ) {
$url = $img->getURL();
if( $nourl ) {
- $url = str_replace( "http://", "http-noparse://", $url );
+ $url = str_replace( "http://", UNIQ_PREFIX . "NOPARSEhttp://", $url );
}
$class = 'internal';
} else {