openbsd-ports/www/bk2site/patches/patch-reference_C

60 lines
2.8 KiB
Plaintext

$OpenBSD: patch-reference_C,v 1.1 2002/10/17 11:25:39 naddy Exp $
--- reference.C.orig Thu Dec 6 15:29:25 2001
+++ reference.C Thu Oct 17 00:10:39 2002
@@ -804,19 +804,19 @@ string reference::sendAsHTML(const strin
else
replaceAll(outputString, "%NEW", "");
else if (FORMATVARS[i] == "%TIMEFCRE"){
- long int l = creationTime;
+ time_t l = creationTime;
string c (ctime(&l));
c = c.substr(0,c.size()-1);
replaceAll(outputString, "%TIMEFCRE", c);
}
else if (FORMATVARS[i] == "%TIMEFMOD"){
- long int l = modifiedTime;
+ time_t l = modifiedTime;
string c(ctime(&l));
c = c.substr(0,c.size()-1);
replaceAll(outputString, "%TIMEFMOD", c);
}
else if (FORMATVARS[i] == "%TIMEFVIS"){
- long int l = visitTime;
+ time_t l = visitTime;
string c(ctime(&l));
c = c.substr(0,c.size()-1);
replaceAll(outputString, "%TIMEFVIS", c);
@@ -1189,7 +1189,7 @@ time_t referenceTree::setFolderCreationT
The hard work is done by FolderCommentParser
*/
-void referenceTree::fixCommentCommands(const string parentFolderHTML = ""){
+void referenceTree::fixCommentCommands(const string parentFolderHTML){
for (vector<reference>::iterator i = contents.begin(); i != contents.end(); ++i){
reference& r = *i;
replaceAll(r.comment,"&lt;","<");
@@ -1398,7 +1398,7 @@ void referenceTree::merge(const referenc
returns the number of elements added.
Only adds URLS that are not Private and not Aliasof another one and
are not under avoidFolder. */
-void referenceTree::makeVector(vector<reference> & vr, const string & avoidFolder = "")
+void referenceTree::makeVector(vector<reference> & vr, const string & avoidFolder)
{
for (vector<reference>::iterator i = contents.begin(); i != contents.end(); ++i){
reference & r = *i;
@@ -1466,10 +1466,10 @@ void referenceTree::createSite(const str
void referenceTree::createSiteH(const string varValues[], vector<reference> & allReferences,
channelContainer & channels,
fileView & baseView, fileView & otherView,
- vector<reference> & newsItems, int depth = 0,
- string navigateBar = "", string searchNavBar = "",
- string parentTitle = "", string folderTitle="",
- string filePath = "") {
+ vector<reference> & newsItems, int depth,
+ string navigateBar, string searchNavBar,
+ string parentTitle, string folderTitle,
+ string filePath) {
string ofileName;
fileView & fv = baseView;
string fileContents;