Skip to content

Commit

Permalink
don't link to full size image in NonJS version
Browse files Browse the repository at this point in the history
Ignore-this: ddc92179bea4640f6b4284bd0d487f27

darcs-hash:20090609194355-7ad00-7046d81ce4c63fb825180fa3aee8e63ecfcda84b.gz
  • Loading branch information
splitbrain committed Jun 9, 2009
1 parent 1faa1ff commit da5b8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -98,11 +98,11 @@ function handle($match, $state, $pos, &$handler){
*/
function render($mode, &$R, $data) {
if($mode != 'xhtml') return false;

global $ID;
require_once(DOKU_INC.'inc/JSON.php');
$json = new JSON();

$img = '<a href="'.ml($data['image']).'"><img src="'.
$img = '<a href="'.ml($data['image'],array('id'=>$ID),false).'"><img src="'.
ml($data['image'], array('w'=>$data['width'],'h'=>$data['height'])).'" width="'.
$data['width'].'" height="'.$data['height'].'" alt="" /></a>';

Expand Down

0 comments on commit da5b8f0

Please sign in to comment.