Skip to content

Commit 403f689

Browse files
authored
Issue #11: fix moderation enabled check (#14)
1 parent 0787c52 commit 403f689

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content_moderation.module

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ function content_moderation_autoload_info() {
1515
'content_moderation_handler_filter_state' => 'includes/content_moderation_handler_filter_state.inc',
1616
'content_moderation_handler_filter_moderated_type' => 'includes/content_moderation_handler_filter_moderated_type.inc',
1717
'content_moderation_handler_filter_user_can_moderate' => 'includes/content_moderation_handler_filter_user_can_moderate.inc',
18-
// 'ContentModerationMigrateDestinationHandler'
19-
// => 'content_moderation.migrate.inc',
18+
// 'ContentModerationMigrateDestinationHandler' => 'content_moderation.migrate.inc',
2019
);
2120
}
2221

@@ -1147,8 +1146,7 @@ function content_moderation_state_none() {
11471146
* @return bool
11481147
*/
11491148
function content_moderation_node_type_moderated($type) {
1150-
// Is this content even in moderatation?
1151-
return config_get('node.type.' . $type, 'settings.moderation_enabled');
1149+
return (bool) config_get('node.type.' . $type, 'settings.moderation_enabled');
11521150
}
11531151

11541152
/**

0 commit comments

Comments
 (0)