Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cba3391b
Commit
cba3391b
authored
Sep 27, 2005
by
Dries
Browse files
- Fixed spaces
parent
9f27e044
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/forum.module
View file @
cba3391b
...
...
@@ -302,7 +302,7 @@ function _forum_get_vid() {
$vid
=
variable_get
(
'forum_nav_vocabulary'
,
''
);
if
(
empty
(
$vid
))
{
// Check to see if a forum vocabulary exists
$vid
=
db_result
(
db_query
(
"SELECT vid FROM
{
vocabulary
}
WHERE module
=
'%s'"
,
'forum'
));
$vid
=
db_result
(
db_query
(
"SELECT vid FROM
{
vocabulary
}
WHERE module
=
'%s'"
,
'forum'
));
if
(
!
$vid
)
{
$edit
=
array
(
'name'
=>
'Forums'
,
'multiple'
=>
0
,
'required'
=>
1
,
'hierarchy'
=>
1
,
'relations'
=>
0
,
'module'
=>
'forum'
,
'nodes'
=>
array
(
'forum'
));
taxonomy_save_vocabulary
(
$edit
);
...
...
modules/forum/forum.module
View file @
cba3391b
...
...
@@ -302,7 +302,7 @@ function _forum_get_vid() {
$vid
=
variable_get
(
'forum_nav_vocabulary'
,
''
);
if
(
empty
(
$vid
))
{
// Check to see if a forum vocabulary exists
$vid
=
db_result
(
db_query
(
"SELECT vid FROM
{
vocabulary
}
WHERE module
=
'%s'"
,
'forum'
));
$vid
=
db_result
(
db_query
(
"SELECT vid FROM
{
vocabulary
}
WHERE module
=
'%s'"
,
'forum'
));
if
(
!
$vid
)
{
$edit
=
array
(
'name'
=>
'Forums'
,
'multiple'
=>
0
,
'required'
=>
1
,
'hierarchy'
=>
1
,
'relations'
=>
0
,
'module'
=>
'forum'
,
'nodes'
=>
array
(
'forum'
));
taxonomy_save_vocabulary
(
$edit
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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