summaryrefslogtreecommitdiff
path: root/lib/plugins/extension/helper/repository.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-09 22:58:01 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-08-09 22:58:01 +0200
commit75e063084d865a011e074c29c5edb8569fe2cfe1 (patch)
treecc14ba78b947e8b0a48a1fc17404f2ac81f5c0ab /lib/plugins/extension/helper/repository.php
parent1e0eea17dc60dc6f5ec81ffcca313db353c88c44 (diff)
downloadrpg-75e063084d865a011e074c29c5edb8569fe2cfe1.tar.gz
rpg-75e063084d865a011e074c29c5edb8569fe2cfe1.tar.bz2
made info mechanism work again
Diffstat (limited to 'lib/plugins/extension/helper/repository.php')
-rw-r--r--lib/plugins/extension/helper/repository.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/plugins/extension/helper/repository.php b/lib/plugins/extension/helper/repository.php
index 38e07786e..1f603a866 100644
--- a/lib/plugins/extension/helper/repository.php
+++ b/lib/plugins/extension/helper/repository.php
@@ -146,9 +146,10 @@ class helper_plugin_extension_repository extends DokuWiki_Plugin {
*/
protected function parse_query($q){
$parameters = array(
- 'tag' => array(),
+ 'tag' => array(),
'mail' => array(),
- 'type' => array()
+ 'type' => array(),
+ 'ext' => array()
);
// extract tags
@@ -165,6 +166,13 @@ class helper_plugin_extension_repository extends DokuWiki_Plugin {
$parameters['mail'][] = $m[3];
}
}
+ // extract extensions
+ if(preg_match_all('/(^|\s)(ext:([\S]+))/', $q, $matches, PREG_SET_ORDER)){
+ foreach($matches as $m){
+ $q = str_replace($m[2], '', $q);
+ $parameters['ext'][] = $m[3];
+ }
+ }
// extract types
if(preg_match_all('/(^|\s)(type:([\S]+))/', $q, $matches, PREG_SET_ORDER)){
foreach($matches as $m){