From: <vo...@us...> - 2012-01-18 11:25:38
|
Revision: 8751 http://xoops.svn.sourceforge.net/xoops/?rev=8751&view=rev Author: voltan1 Date: 2012-01-18 11:25:27 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Fix some problems Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/backend.php XoopsModules/fmcontent/branches/news/class/file.php XoopsModules/fmcontent/branches/news/submit.php XoopsModules/fmcontent/branches/news/templates/news_archive.html XoopsModules/fmcontent/branches/news/templates/news_topic.html Modified: XoopsModules/fmcontent/branches/news/admin/backend.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-18 11:25:27 UTC (rev 8751) @@ -178,7 +178,7 @@ } // file - if($_REQUEST ['file_name']) { + if(isset($_REQUEST['xoops_upload_file'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); @@ -274,7 +274,7 @@ } // file - if($_REQUEST ['file_name']) { + if(isset($_REQUEST['xoops_upload_file'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); Modified: XoopsModules/fmcontent/branches/news/class/file.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/file.php 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/class/file.php 2012-01-18 11:25:27 UTC (rev 8751) @@ -169,7 +169,7 @@ foreach ( $files as $root ) { $tab = array (); $tab = $root->toArray (); - $tab ['fileurl'] = XOOPS_URL . xoops_getModuleOption ( 'file_dir', $NewsModule->getVar ( 'dirname' ) ) . $root->getVar ( 'file_name' ); + $tab ['fileurl'] = XOOPS_URL . xoops_getModuleOption ( 'file_dir', $NewsModule->getVar ( 'dirname' ) ) . '/' . $root->getVar ( 'file_name' ); $ret [] = $tab; } } Modified: XoopsModules/fmcontent/branches/news/submit.php =================================================================== --- XoopsModules/fmcontent/branches/news/submit.php 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/submit.php 2012-01-18 11:25:27 UTC (rev 8751) @@ -73,6 +73,7 @@ $obj->setVar ( 'story_desc', NewsUtils::News_AjaxFilter ( $_REQUEST ['story_title'] ) ); $obj->setVar ( 'story_create', time () ); $obj->setVar ( 'story_update', time () ); + $obj->setVar ( 'story_publish', time () ); $obj->setVar ( 'story_groups', $groups ); //Form topic_img @@ -99,7 +100,7 @@ } // file - if($_REQUEST ['file_name']) { + if(isset($_REQUEST['xoops_upload_file'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); Modified: XoopsModules/fmcontent/branches/news/templates/news_archive.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_archive.html 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/templates/news_archive.html 2012-01-18 11:25:27 UTC (rev 8751) @@ -1,6 +1,6 @@ <div class="news-archive"> <div class="pad2 marg2"> - <table> + <table class="outer"> <tr> <th><{$smarty.const._NEWS_MD_ARCHIVE}></th> </tr> Modified: XoopsModules/fmcontent/branches/news/templates/news_topic.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_topic.html 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/templates/news_topic.html 2012-01-18 11:25:27 UTC (rev 8751) @@ -2,7 +2,7 @@ <{if $advertisement}> <div class="itemAde"><{$advertisement}></div> <{/if}> - <table id="xo-content-data" class="outer" cellspacing="1" width="100%"> + <table class="outer"> <thead> <th class="txtcenter"><{$smarty.const._NEWS_MD_TOPIC_NAME}></th> <th class="txtcenter"><{$smarty.const._NEWS_MD_TOPIC_IMG}></th> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |