[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.204,1.205
dhaun at geeklog.net
dhaun at geeklog.net
Tue Mar 11 04:37:53 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv29353/public_html
Modified Files:
lib-common.php
Log Message:
Fixed the "late" update of portal blocks (bug #681855).
Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.204
retrieving revision 1.205
diff -C2 -d -r1.204 -r1.205
*** lib-common.php 1 Mar 2003 16:40:25 -0000 1.204
--- lib-common.php 11 Mar 2003 09:37:50 -0000 1.205
***************
*** 3050,3054 ****
if( $A['type'] == 'portal' )
{
! COM_rdfCheck( $A['bid'], $A['rdfurl'], $A['date'] );
}
--- 3050,3058 ----
if( $A['type'] == 'portal' )
{
! if( COM_rdfCheck( $A['bid'], $A['rdfurl'], $A['date'] ))
! {
! $A['content'] = DB_getItem( $_TABLES['blocks'], 'content',
! "bid = '{$A['bid']}'");
! }
}
***************
*** 3120,3128 ****
* @param string $date Last time the headlines were imported
* @see function COM_rdfImport
! * @return void
*/
function COM_rdfCheck( $bid, $rdfurl, $date )
{
$nextupdate = $date + 3600;
--- 3124,3133 ----
* @param string $date Last time the headlines were imported
* @see function COM_rdfImport
! * @return bool "true" if the block was updated, "false" if not
*/
function COM_rdfCheck( $bid, $rdfurl, $date )
{
+ $retval = false;
$nextupdate = $date + 3600;
***************
*** 3130,3134 ****
--- 3135,3142 ----
{
COM_rdfImport( $bid, $rdfurl );
+ $retval = true;
}
+
+ return $retval;
}
More information about the geeklog-cvs
mailing list