summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-10-29 20:52:27 +0100
committerMichael Hamann <michael@content-space.de>2013-10-29 20:54:16 +0100
commit9269d0b1fb78c217069efd497734c183df9937be (patch)
treefe4727d185177c08a891a09be75d985af7c8eab6 /inc/parser
parent93d16b87e9f2ab15088bd0d7adfbfce17336c28c (diff)
downloadrpg-9269d0b1fb78c217069efd497734c183df9937be.tar.gz
rpg-9269d0b1fb78c217069efd497734c183df9937be.tar.bz2
Fix the media usage index to include local links
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/metadata.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/parser/metadata.php b/inc/parser/metadata.php
index 437559370..8ba159d62 100644
--- a/inc/parser/metadata.php
+++ b/inc/parser/metadata.php
@@ -274,7 +274,12 @@ class Doku_Renderer_metadata extends Doku_Renderer {
$this->internallink($link, $link);
}
- function locallink($hash, $name = null){}
+ function locallink($hash, $name = null){
+ if(is_array($name)) {
+ $this->_firstimage($name['src']);
+ if ($name['type'] == 'internalmedia') $this->_recordMediaUsage($name['src']);
+ }
+ }
/**
* keep track of internal links in $this->meta['relation']['references']