Index: extension/ezflow/design/standard/templates/block/edit/edit.tpl
===================================================================
--- extension/ezflow/design/standard/templates/block/edit/edit.tpl (working copy)
+++ extension/ezflow/design/standard/templates/block/edit/edit.tpl (revision 46)
@@ -100,7 +100,7 @@
|
{fetch( 'content', 'object', hash( 'object_id', $item.object_id ) ).name|wash} |
- {$item.ts_publication|l10n( 'shortdatetime' )} ( {if $item.ts_publication|lt( $current_time )}0{else}{if ge($item.ts_publication|sub( $current_time ),3600)}{$item.ts_publication|sub( $current_time )|sub(3600)|datetime( 'custom', '%H:%i:%s' )} hours left {else}{$item.ts_publication|sub( $current_time )|datetime( 'custom', '%i:%s' )} min left {/if}{/if} ) }) |
+ {$item.ts_publication|l10n( 'shortdatetime' )} ( {if $item.ts_publication|lt( $current_time )}0{else}{$item.ts_publication|sub( $current_time )|datetime( 'custom', '%i:%s' )}{/if} min left ) }) |
{/foreach}
{else}
Index: extension/ezflow/datatypes/ezpage/ezpagetype.php
===================================================================
--- extension/ezflow/datatypes/ezpage/ezpagetype.php (working copy)
+++ extension/ezflow/datatypes/ezpage/ezpagetype.php (revision 46)
@@ -243,13 +243,8 @@
$item->setAttribute( 'action', 'modify' );
$item->setAttribute( 'object_id', $objectID );
- $itemTSPublishedUnitArray = $http->postVariable( $base . '_ezpage_item_ts_published_value_' . $contentObjectAttribute->attribute( 'id' ) );
+ $itemTSPublishedUnitArray = $http->postVariable( $base . '_ezpage_item_ts_published_unit_' . $contentObjectAttribute->attribute( 'id' ) );
- // Strange behaviour :
- // $itemTSPublishedUnitArray[$zoneID][$blockID][$objectID] is $value,
- // So it contains minutes, not 1 or 2
-
- /*
switch ( $itemTSPublishedUnitArray[$zoneID][$blockID][$objectID] )
{
case 1:
@@ -259,10 +254,6 @@
$item->setAttribute( 'ts_publication', time() + ( $value * 60 ) );
break;
}
- */
- $item->setAttribute( 'ts_publication', time() + $value * 60);
- // eZDebug::writeNotice(print_r($item, true));
-
}
}
}
@@ -813,7 +804,7 @@
$contentObjectAttribute->store();
}
- /*!
+ /*!
\return true if the datatype can be indexed
*/
function isIndexable()