diff --git a/_test/cases/inc/parser/parser_links.test.php b/_test/cases/inc/parser/parser_links.test.php index 86597ba9e036a5ba7d7b824e332db8e8d2e905f3..d255437f860db84d3614c4c89f268b5432be4146 100644 --- a/_test/cases/inc/parser/parser_links.test.php +++ b/_test/cases/inc/parser/parser_links.test.php @@ -322,14 +322,14 @@ class TestOfDoku_Parser_Links extends TestOfDoku_Parser { $this->assertEqual(array_map('stripByteIndex',$this->H->calls),$calls); } - function testMediaInternalJustlink() { + function testMediaInternalLinkOnly() { $this->P->addMode('media',new Doku_Parser_Mode_Media()); - $this->P->parse('Foo {{img.gif?justlink}} Bar'); + $this->P->parse('Foo {{img.gif?linkonly}} Bar'); $calls = array ( array('document_start',array()), array('p_open',array()), array('cdata',array("\n".'Foo ')), - array('internalmedia',array('img.gif',NULL,NULL,NULL,NULL,'cache','justlink')), + array('internalmedia',array('img.gif',NULL,NULL,NULL,NULL,'cache','linkonly')), array('cdata',array(' Bar'."\n")), array('p_close',array()), array('document_end',array()), diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 4d3dc5380531f3e3caa27886ddd1239aebb0feb8..c016171b0967fc5e44c81258fc86b0ce1dc36a25 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -686,8 +686,8 @@ function Doku_Handler_Parse_Media($match) { $linking = 'nolink'; }else if(preg_match('/direct/i',$param)){ $linking = 'direct'; - }else if(preg_match('/justlink/i',$param)){ - $linking = 'justlink'; + }else if(preg_match('/linkonly/i',$param)){ + $linking = 'linkonly'; }else{ $linking = 'details'; } diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 774fbd5a27bf9e47be7b38de6a707eb0b7da3846..5f25d167ad837fdd93feee1caef8fa3a6f8493e9 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -669,7 +669,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { resolve_mediaid(getNS($ID),$src, $exists); $noLink = false; - $render = ($linking == 'justlink') ? false : true; + $render = ($linking == 'linkonly') ? false : true; $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render); list($ext,$mime) = mimetype($src); @@ -696,7 +696,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { function externalmedia ($src, $title=NULL, $align=NULL, $width=NULL, $height=NULL, $cache=NULL, $linking=NULL) { $noLink = false; - $render = ($linking == 'justlink') ? false : true; + $render = ($linking == 'linkonly') ? false : true; $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render); $link['url'] = ml($src,array('cache'=>$cache));