Browse code

viewstory.php: change to from ef_story_error to write_error as the first function is not in this codebase

Clarissa Walker authored on 2026/11/15 08:43:46
Showing 1 changed files
... ...
@@ -371,7 +371,7 @@ else {
371 371
 		$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>";
372 372
 	}
373 373
 	// if the *CHAPTER* hasn't been validated and the viewer isn't an admin or the author throw them a warning.  
374
-	if(!$valid && !$ef_ownview && USERUID != $chapterauthor) ef_story_error(_ACCESSDENIED, $title);
374
+	if(!$valid && !$ef_ownview && USERUID != $chapterauthor) write_error(_ACCESSDENIED, $title);
375 375
 	$stories = $storyinfo;
376 376
 	$tpl->gotoBlock("_ROOT");
377 377
 	$jumpmenu2 = "";