aboutsummaryrefslogtreecommitdiffstats
path: root/mod/sources.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-02-01 13:49:53 +0100
committermarijus <mario@localhost.localdomain>2014-02-01 13:49:53 +0100
commitb3f819d52aa2b68529dadb3b409fe3c6f8ba7c0d (patch)
tree7409f78a360d237bb61c1b590a4d3e6412914727 /mod/sources.php
parentaf75b77253bf051b9e3f486809bbabcd3c415732 (diff)
parent94d874c0b2b5e719af3aa676d015307bab514b6a (diff)
downloadvolse-hubzilla-b3f819d52aa2b68529dadb3b409fe3c6f8ba7c0d.tar.gz
volse-hubzilla-b3f819d52aa2b68529dadb3b409fe3c6f8ba7c0d.tar.bz2
volse-hubzilla-b3f819d52aa2b68529dadb3b409fe3c6f8ba7c0d.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod/sources.php')
-rw-r--r--mod/sources.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/sources.php b/mod/sources.php
index 87bab60df..f4b36508f 100644
--- a/mod/sources.php
+++ b/mod/sources.php
@@ -12,9 +12,13 @@ function sources_post(&$a) {
$abook = intval($_REQUEST['abook']);
$words = $_REQUEST['words'];
$frequency = $_REQUEST['frequency'];
+ $name = $_REQUEST['name'];
$channel = $a->get_channel();
+ if($name == '*')
+ $xchan = '*';
+
if($abook) {
$r = q("select abook_xchan from abook where abook_id = %d and abook_channel = %d limit 1",
intval($abook),
@@ -74,6 +78,9 @@ function sources_content(&$a) {
);
if($r) {
for($x = 0; $x < count($r); $x ++) {
+ if($r[$x]['src_xchan'] == '*') {
+ $r[$x]['xchan_name'] = t('*');
+ }
$r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt'], ENT_COMPAT,'UTF-8');
}
}