diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-17 02:20:16 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-17 02:20:16 +1100 |
| commit | 9554291802cb8ac712ba25d1a59ced31d20b07f0 (patch) | |
| tree | 6861b6ebffe4e2f54573907cc789b34648d59c24 /inc/mod.php | |
| parent | 4052d6350214e5384cfe15823e29197d2eaf7326 (diff) | |
Mod controls and permissions
Diffstat (limited to 'inc/mod.php')
| -rw-r--r-- | inc/mod.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/mod.php b/inc/mod.php index 200ffa20..b5e773f5 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -85,11 +85,11 @@ } // Generates a <ul> element with a list of linked - // boards and their subtitles. + // boards and their subtitles. (without the <ul> opening and ending tags) function ulBoards() { global $mod; - $body = '<ul>'; + $body = ''; // List of boards $boards = listBoards(); @@ -106,10 +106,10 @@ '</li>'; } - if($mod['type'] == MOD_ADMIN) { + if($mod['type'] >= MOD_NEWBOARD) { $body .= '<li style="margin-top:15px;"><a href="?/new"><strong>Create new board</strong></a></li>'; } - return $body . '</ul>'; + return $body; } function form_newBoard() { |
