Fixed a few regressions and renamed a file.

This commit is contained in:
Azareal 2017-09-23 21:46:28 +01:00
parent 11c60b3cbe
commit 96b157e5aa
4 changed files with 9 additions and 9 deletions

View File

@ -662,7 +662,7 @@ func routeIps(w http.ResponseWriter, r *http.Request, user User) {
return
}
}
err = templates.ExecuteTemplate(w, "ip-search-results.html", pi)
err = templates.ExecuteTemplate(w, "ip-search.html", pi)
if err != nil {
InternalError(err, w)
}

View File

@ -347,9 +347,9 @@ func rebuildForumPermissions(fid int) error {
if dev.DebugMode {
log.Print("Updating the forum permissions for Group #" + strconv.Itoa(group.ID))
}
var blankList []ForumPerms
var blankIntList []int
group.Forums = blankList
group.Forums = []ForumPerms{BlankForumPerms}
group.CanSee = blankIntList
for ffid := range forums {
@ -428,7 +428,7 @@ func buildForumPermissions() error {
if dev.DebugMode {
log.Print("Adding the forum permissions for Group #" + strconv.Itoa(group.ID) + " - " + group.Name)
}
//groups[gid].Forums = append(groups[gid].Forums,BlankForumPerms) // GID 0. No longer needed now that Uncategorised occupies that slot
group.Forums = []ForumPerms{BlankForumPerms}
for fid := range forums {
forumPerm, ok := forumPerms[group.ID][fid]
if ok {
@ -451,10 +451,10 @@ func buildForumPermissions() error {
}
}
if dev.SuperDebug {
//log.Printf("groups[gid].CanSee %+v\n", groups[gid].CanSee)
//log.Printf("groups[gid].Forums %+v\n", groups[gid].Forums)
//log.Print("len(groups[gid].CanSee)",len(groups[gid].CanSee))
//log.Print("len(groups[gid].Forums)",len(groups[gid].Forums))
//log.Printf("group.CanSee %+v\n", group.CanSee)
//log.Printf("group.Forums %+v\n", group.Forums)
//log.Print("len(group.CanSee)",len(group.CanSee))
//log.Print("len(group.Forums)",len(group.Forums))
}
}
return nil

View File

@ -491,7 +491,7 @@ input, select, textarea {
float: left;
padding-right: 0px;
}
.rowhead .rowitem:not(.has_opt) {
.rowhead .rowitem:not(.has_opt), .opthead .rowitem, .colstack_head .rowitem {
width: 100%;
}