Pastie: one more place to mark untitled pastes
authorBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 03:24:30 +0000 (23:24 -0400)
committerBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 03:24:30 +0000 (23:24 -0400)
pastie/templates/view.inc

index c4e8e9f..26d4108 100644 (file)
@@ -3,7 +3,7 @@ require_once PASTIE_TEMPLATES . '/recent.inc';
 ?>
 <div id="showpaste">
     <div class="pasteHeader">
-        <h2 class="pasteTitle"><?php echo $paste['title']; ?></h2>
+        <h2 class="pasteTitle"><?php echo $paste['title'] ? $paste['title'] : _("[Untitled]"); ?></h2>
         By <span class="pasteOwner"><?php echo $paste['owner']; ?></span>
         on <span class="pasteDate"><?php echo $paste['timestamp']; ?></span>
     </div>
@@ -11,4 +11,4 @@ require_once PASTIE_TEMPLATES . '/recent.inc';
     <?php echo $output; ?>
     </div>
 </div>
-<br style="clear:both;">
\ No newline at end of file
+<br style="clear:both;">