Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Commit 2ba4895

Browse files
committed
Merge pull request #3 from mcmonkey4eva/patch-1
Correct HTML typos
2 parents 6c46099 + ea04c66 commit 2ba4895

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/pages.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function raw() {
5959
$rowCode = $queryCode->fetch_assoc();
6060
$newCount = $row['downloads'] + 1;
6161
$this->mainClass->queryDatabase("UPDATE repo_entries SET downloads='$newCount' WHERE pubID='$pubID'");
62-
echo "<html><body><pre>" . htmlspecialchars($rowCode['code']) . "</pre></body></html";
62+
echo "<!DOCTYPE html><html><body><pre>" . htmlspecialchars($rowCode['code']) . "</pre></body></html>";
6363
exit;
6464
}
6565
}

assets/templates/view.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{if $viewSuccess}<div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">X</button>{$viewSuccess}</div>{/if}
88
<div width="100%">
99
<div class="span3 well well-large pull-right" style="margin:1em;display:block;">
10-
<h4 style="text-align:center;">{$dataToUse.name}</h2><br>
10+
<h4 style="text-align:center;">{$dataToUse.name}</h4><br>
1111
<b>Author: </b><a href="{buildURL page='user/'}{$dataToUse.author}">{$dataToUse.author}</a><br>
1212
<b>Created: </b><abbr class="timeago" title="{$dateCreated}">{$dateCreated}</abbr><br>
1313
<b>Edited: </b><abbr class="timeago" title="{$dateEdited}">{$dateEdited}</abbr><br>
@@ -50,7 +50,7 @@
5050
</div>
5151
<form id='post' method='post' accept-charset='UTF-8'>
5252
<fieldset>
53-
<textarea rows="4"{if !$ScriptRepo->loggedIn}disabled{/if} class="span7" id="commentField" name="commentField" placeholder="{if $ScriptRepo->loggedIn}Comment{else}Log in to comment!{/if}">{if $commentField}{$commentField}{/if}</textarea><br>
53+
<textarea rows="4"{if !$ScriptRepo->loggedIn} disabled{/if} class="span7" id="commentField" name="commentField" placeholder="{if $ScriptRepo->loggedIn}Comment{else}Log in to comment!{/if}">{if $commentField}{$commentField}{/if}</textarea><br>
5454
<input class="btn btn-small btn-primary" type='Submit' name='Submit' value='Submit' /><br>
5555
</fieldset>
56-
</form>
56+
</form>

0 commit comments

Comments
 (0)