Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
30c8cea8
Commit
30c8cea8
authored
Jan 03, 2007
by
Penny Leach
Browse files
fixed up internal search communities
parent
5fdf13c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/search/internal/lib.php
View file @
30c8cea8
...
...
@@ -247,11 +247,16 @@ class PluginSearchInternal extends PluginSearch {
id, name, description, jointype, owner, ctime, mtime
FROM
"
.
get_config
(
'dbprefix'
)
.
"community
WHERE
WHERE
(
name ILIKE '%' || ? || '%'
OR description ILIKE '%' || ? || '%'
) AND (
owner = ? OR id IN (
SELECT community FROM "
.
get_config
(
'dbprefix'
)
.
"community_member WHERE member = ?
)
)
"
,
array
(
$query_string
,
$query_string
),
array
(
$query_string
,
$query_string
,
$USER
->
get
(
'id'
),
$USER
->
get
(
'id'
)
),
$offset
,
$limit
);
...
...
@@ -261,14 +266,16 @@ class PluginSearchInternal extends PluginSearch {
COUNT(*)
FROM
"
.
get_config
(
'dbprefix'
)
.
"usr_group u
WHERE
owner = ?
AND (
name ILIKE '%' || ? || '%'
OR description ILIKE '%' || ? || '%'
WHERE (
name ILIKE '%' || ? || '%'
OR description ILIKE '%' || ? || '%'
) AND (
owner = ? OR id IN (
SELECT community FROM "
.
get_config
(
'dbprefix'
)
.
"community_member WHERE member = ?
)
)
"
,
array
(
$query_string
,
$query_string
)
array
(
$query_string
,
$query_string
,
$USER
->
get
(
'id'
),
$USER
->
get
(
'id'
)
)
);
}
// TODO
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment