Commit bbae5e81 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #18795: Display message to forum admin if there are no forums yet.

parent 54dfc577
......@@ -235,9 +235,11 @@ function forum_overview() {
}
}
return theme('table', $header, $rows);
}
else {
$rows[] = array(array('data' => '<em>' . t('There are no existing containers or forums. You may add some on the <a href="%container">add container</a> or <a href="%forum">add forum</a> pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '</em>', 'colspan' => 2));
}
return theme('table', $header, $rows);
}
/**
......
......@@ -235,9 +235,11 @@ function forum_overview() {
}
}
return theme('table', $header, $rows);
}
else {
$rows[] = array(array('data' => '<em>' . t('There are no existing containers or forums. You may add some on the <a href="%container">add container</a> or <a href="%forum">add forum</a> pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '</em>', 'colspan' => 2));
}
return theme('table', $header, $rows);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment