diff --git a/web/zm_funcs.php b/web/zm_funcs.php
index 321f89735..c6a152da1 100644
--- a/web/zm_funcs.php
+++ b/web/zm_funcs.php
@@ -1015,8 +1015,8 @@ function parseSort( $save_to_session=false, $term_sep='&' )
if ( !isset($sort_field) )
{
- $sort_field = ZM_EVENT_SORT_FIELD;
- $sort_asc = (ZM_EVENT_SORT_ORDER == "asc");
+ $sort_field = ZM_WEB_EVENT_SORT_FIELD;
+ $sort_asc = (ZM_WEB_EVENT_SORT_ORDER == "asc");
}
switch( $sort_field )
{
diff --git a/web/zm_html_view_event.php b/web/zm_html_view_event.php
index 3ee47a6c4..a701eb581 100644
--- a/web/zm_html_view_event.php
+++ b/web/zm_html_view_event.php
@@ -373,10 +373,10 @@ if ( $mode == "stream" )
?>
?
$start_section = 0;
if ( !empty($fid) )
{
- $start_section = (int)floor(($fid * $panel_sections)/($event['Frames']+1));
+ $start_section = (int)floor((($fid-1) * $panel_sections)/($event['Frames']+1));
}
if ( ZM_WEB_SHOW_PROGRESS )
{
diff --git a/web/zm_html_view_filter.php b/web/zm_html_view_filter.php
index 86b527406..53ffe3418 100644
--- a/web/zm_html_view_filter.php
+++ b/web/zm_html_view_filter.php
@@ -138,8 +138,8 @@ $sort_dirns = array(
);
if ( !$sort_field )
{
- $sort_field = ZM_EVENT_SORT_FIELD;
- $sort_asc = (ZM_EVENT_SORT_ORDER == "asc");
+ $sort_field = ZM_WEB_EVENT_SORT_FIELD;
+ $sort_asc = (ZM_WEB_EVENT_SORT_ORDER == "asc");
}
?>
diff --git a/web/zm_html_view_montagefeed.php b/web/zm_html_view_montagefeed.php
index 68ef71e9a..0d4f500bc 100644
--- a/web/zm_html_view_montagefeed.php
+++ b/web/zm_html_view_montagefeed.php
@@ -106,10 +106,10 @@ window.setTimeout( "window.location.reload(true)", = ZM_WEB_REFRESH_IMAGE*1000
|