Skip to content

Commit

Permalink
Fixes for errors in views
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Aug 31, 2024
1 parent d5e2b7e commit 2214b37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion set_entry_cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
echo <<<EOT
<h2>{$setCatStr}</h2>
<form action="set_entry_cat.php" method="post" name="selectcategory">
${formKey}
{$formKey}
<input type="hidden" name="date" value="{$date}">
<input type="hidden" name="id" value="{$id}">
<table cellpadding="5">
Expand Down
3 changes: 2 additions & 1 deletion view_d.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* (except for nonuser calendars... which we allow regardless of group).
*/
// $start = microtime();
require_once 'includes/init.php';
require_once 'includes/views.php';

$error = '';
Expand Down Expand Up @@ -79,7 +80,7 @@
<!-- Hidden form for booking events -->
<form action="edit_entry.php" method="post" name="schedule">
${formKey}
{$formKey}
<input type="hidden" name="date"
value="{$thisyear}{$thismonth}{$thisday}">
<input type="hidden" name="defusers" value="{$partStr}">
Expand Down
3 changes: 2 additions & 1 deletion view_l.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
* groups (except for nonuser calendars... which we allow regardless of group).
*/

require_once 'includes/init.php';
require_once 'includes/views.php';

$id=getValue('id');
view_init ( $id );

$error = $printerStr = $unapprovedStr = '';
Expand Down

0 comments on commit 2214b37

Please sign in to comment.