2
0
mirror of https://github.com/xvxx/phd synced 2024-11-04 18:00:22 +00:00

fix footer

This commit is contained in:
dvkt 2019-12-29 00:19:57 -08:00
parent 6927c8c5bc
commit 5ab317186f

View File

@ -117,19 +117,6 @@ where
},
)?;
}
let mut footer = path.clone();
footer.push_str("/footer.gph");
if fs_exists(&footer) {
let mut sel = req.selector.clone();
sel.push_str("/footer.gph");
write_gophermap(
w,
Request {
selector: sel,
..req.clone()
},
)?;
}
let mut menu = GopherMenu::with_write(w);
let rel_path = req.relative_file_path();
@ -165,6 +152,21 @@ where
req.port,
)?;
}
let mut footer = path.clone();
footer.push_str("/footer.gph");
if fs_exists(&footer) {
let mut sel = req.selector.clone();
sel.push_str("/footer.gph");
write_gophermap(
w,
Request {
selector: sel,
..req.clone()
},
)?;
}
menu.end()?;
Ok(())
}