Browse code

viewstory.php: Remove accidentally committed print mod... again

Clarissa Walker authored on 2026/11/01 05:01:41
Showing 1 changed files
... ...
@@ -240,7 +240,7 @@ else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) {
240 240
 		eval($code['code_text']);
241 241
 	}
242 242
 	include("includes/storyblock.php");
243
-	$printicon = "<img src='".(isset($printer) ? $printer : "images/print.gif")."' border='0' alt='"._PRINTER."'> <a href=\"viewstory.php?action=printable&amp;textsize=$textsize&amp;sid=$sid&amp;chapter=all\" target=\"_blank\">"._STORY."</a>";
243
+	$printicon = "<a href=\"viewstory.php?action=printable&amp;textsize=$textsize&amp;sid=$sid&amp;chapter=all\" target=\"_blank\"><img src='".(isset($printer) ? $printer : "images/print.gif")."' border='0' alt='"._PRINTER."'></a>";
244 244
 	if($reviewsallowed && (isMEMBER || $anonreviews))
245 245
 			$reviewslink = "<a href=\"reviews.php?action=add&amp;item=$sid&amp;next=2&amptype=ST\">"._SUBMITREVIEW."</a>";
246 246
 	$tpl->assign( "reviewslink", $reviewslink );
... ...
@@ -262,7 +262,7 @@ else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) {
262 262
 		$tpl->assign("chapternumber", $chap['inorder']);
263 263
 		$tpl->assign("title", "<a href=\"viewstory.php?sid=$sid&amp;chapter=".$chap['inorder']."\">".$chap['title']."</a>");
264 264
 		$tpl->assign("author", "<a href='viewuser.php?uid=".$chap['uid']."'>".$chap['penname']."</a>");
265
-		$tpl->assign("printicon", "<img src='".(isset($printer) ? $printer : "images/print.gif")."' border='0' alt='"._PRINTER."'> <a href=\"viewstory.php?action=printable&amp;textsize=$textsize&amp;sid=$sid&amp;chapter=".$chap['inorder']."\" target=\"_blank\">"._STORY."</a>");
265
+		$tpl->assign("printicon", "<a href=\"viewstory.php?action=printable&amp;textsize=$textsize&amp;sid=$sid&amp;chapter=".$chap['inorder']."\" target=\"_blank\"><img src='".(isset($printer) ? $printer : "images/print.gif")."' border='0' alt='"._PRINTER."'></a>");
266 266
 		$tpl->assign("ratingpics", ratingpics($chap['rating']));
267 267
 		if($reviewsallowed) {
268 268
 			$tpl->assign("reviews", "<a href=\"reviews.php?type=ST&amp;item=$sid&amp;chapid=".$chap['chapid']."\">"._REVIEWS."</a>");
... ...
@@ -354,7 +354,7 @@ else {
354 354
 		while($code = dbassoc($codeblocks)) {
355 355
 			eval($code['code_text']);
356 356
 		}
357
-		$printicon = "<img src='".(isset($printer) ? $printer : "images/print.gif")."' border='0' alt='"._PRINTER."'> <a href=\"viewstory.php?action=printable&amp;sid=$sid&amp;textsize=$textsize&amp;chapter=1\" target=\"_blank\">"._STORY."</a>";
357
+		$printicon = "<a href=\"viewstory.php?action=printable&amp;sid=$sid&amp;textsize=$textsize&amp;chapter=1\" target=\"_blank\"><img src='".(isset($printer) ? $printer : "images/print.gif")."' border='0' alt='"._PRINTER."'></a>";
358 358
 	}
359 359
 	// if the *CHAPTER* hasn't been validated and the viewer isn't an admin or the author throw them a warning.  
360 360
 	if(!$valid && !$ef_ownview && USERUID != $chapterauthor) ef_story_error(_ACCESSDENIED, $title);