}
static function localurle( $parser, $s = '', $arg = null ) {
- return htmlspecialchars( self::urlFunction( 'getLocalURL', $s, $arg ) );
+ $temp = self::urlFunction( 'getLocalURL', $s, $arg );
+ if( !is_string( $temp ) ) {
+ return $temp;
+ } else {
+ return htmlspecialchars( $temp );
+ }
}
static function fullurl( $parser, $s = '', $arg = null ) {
}
static function fullurle( $parser, $s = '', $arg = null ) {
- return htmlspecialchars( self::urlFunction( 'getFullURL', $s, $arg ) );
+ $temp = self::urlFunction( 'getFullURL', $s, $arg );
+ if( !is_string( $temp ) ) {
+ return $temp;
+ } else {
+ return htmlspecialchars( $temp );
+ }
}
static function canonicalurl( $parser, $s = '', $arg = null ) {