diff --git a/get_data.lib.php b/get_data.lib.php index 220ec06..73ef889 100644 --- a/get_data.lib.php +++ b/get_data.lib.php @@ -1,11 +1,7 @@ diff --git a/navigation.lib.php b/navigation.lib.php index 32de564..6c28cee 100644 --- a/navigation.lib.php +++ b/navigation.lib.php @@ -32,10 +32,10 @@ function sort_options($link) { array_push($options, $display); } else { $href = ''.$display.''; array_push($options, $href); @@ -69,13 +69,13 @@ function get_pager() { // Are there later stories? Go backwards to them $string .= ''; if ($start > 0) { - $string .= "\n".'toWords($show) : $show)." articles"; + $articles = ($show == 1) ? "article" : ($nw ? $nw->toWords((int)$show) : (int)$show)." articles"; $string .= '">« Next '.$articles.''; } $string .= "\n"; @@ -83,13 +83,13 @@ function get_pager() { // Are there earlier stories? Go forwards to them $string .= "\n".''; if ($prev < get_count()) { - $string .= "\n".'toWords($show) : $show)." articles"; + $articles = ($show == 1) ? "article" : ($nw ? $nw->toWords((int)$show) : (int)$show)." articles"; $string .= '">Previous '.$articles.' »'; } $string .= "\n"; diff --git a/publish/addeditor.php b/publish/addeditor.php index ab30ef4..a5c4c17 100644 --- a/publish/addeditor.php +++ b/publish/addeditor.php @@ -46,10 +46,10 @@ if (!isset($_SESSION['editor'])) {
Added editor = $username ?>
+Added editor = form_value($username) ?>
-