|
From: <luc...@us...> - 2013-10-02 16:08:52
|
Revision: 12120
http://sourceforge.net/p/xoops/svn/12120
Author: luciorota
Date: 2013-10-02 16:08:49 +0000 (Wed, 02 Oct 2013)
Log Message:
-----------
better sortby
some more checks
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php
XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php
XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php
XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php
XoopsModules/wfdownloads/trunk/wfdownloads/review.php
XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php
XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_common_letterschoice.html
XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_viewcat.html
XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php
XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -23,8 +23,14 @@
$lid = WfdownloadsRequest::getInt('lid', 0);
$download = $wfdownloads->getHandler('download')->get($lid);
+if (empty($download)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NODOWNLOAD);
+}
$cid = WfdownloadsRequest::getInt('cid', $download->getVar('cid'));
$category = $wfdownloads->getHandler('category')->get($cid);
+if (empty($category)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NOCATEGORY);
+}
// Download not published, expired or taken offline - redirect
if ($download->getVar('published') == 0 || $download->getVar('published') > time() || $download->getVar('offline') == true || ($download->getVar('expired') == true && $download->getVar('expired') < time()) || $download->getVar('status') == 0) {
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2013-10-02 16:08:49 UTC (rev 12120)
@@ -1,4 +1,4 @@
-<b><u>=> Version 3.23 Beta (2013-09-30)</u></b>
+<b><u>=> Version 3.23 Beta (2013-10-02)</u></b>
- module standardization: header.php, admin/admin_header.php, xoops_version.php
- module standardization: standardize directories/files names/structures
- module standardization: standardize code headers
@@ -19,7 +19,7 @@
- added: admin side downloads filter (luciorota)
- added: breadcrumb class (luciorota)
- added: new autosummary option: autosummary if summary field is empty (luciorota)
-- added: xoops/multilanguages/html tags compatible autosummary generator (luciorota)
+- added: xoops/xlanguage/html tags compatible autosummary generator (luciorota)
- added: sort subcategories by cid or title or weight (luciorota)
- added: improved by letters choice bar (luciorota)
- added: wfdownloads_submit.html template for submit.php (luciorota)
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -34,3 +34,6 @@
define("_CO_WFDOWNLOADS_STATUS","Status");
define("_CO_WFDOWNLOADS_ACTIONS","Actions");
define("_CO_WFDOWNLOADS_LEGEND","Legend");
+
+define("_CO_WFDOWNLOADS_ERROR_NOCATEGORY","Error: non-existent category");
+define("_CO_WFDOWNLOADS_ERROR_NODOWNLOAD","Error: non-existent download");
\ No newline at end of file
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -325,3 +325,5 @@
define("_MD_WFDOWNLOADS_SUBCATEGORIESLISTING","Subcategories listing");
define("_MD_WFDOWNLOADS_DOWNLOADSLISTING","Downloads listing");
+
+define("_MD_WFDOWNLOADS_SORTDOWNLOADSBY","Sort downloads by");
\ No newline at end of file
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -23,8 +23,14 @@
$lid = WfdownloadsRequest::getInt('lid', 0);
$download = $wfdownloads->getHandler('download')->get($lid);
+if (empty($download)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NODOWNLOAD);
+}
$cid = WfdownloadsRequest::getInt('cid', $download->getVar('cid'));
$category = $wfdownloads->getHandler('category')->get($cid);
+if (empty($category)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NOCATEGORY);
+}
// Download not published, expired or taken offline - redirect
if ($download->getVar('published') == 0 || $download->getVar('published') > time() || $download->getVar('offline') == 1 || ($download->getVar('expired') != 0 && $download->getVar('expired') < time()) || $download->getVar('status') == 0) {
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -23,8 +23,14 @@
$lid = WfdownloadsRequest::getInt('lid', 0);
$download = $wfdownloads->getHandler('download')->get($lid);
+if (empty($download)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NODOWNLOAD);
+}
$cid = WfdownloadsRequest::getInt('cid', $download->getVar('cid'));
$category = $wfdownloads->getHandler('category')->get($cid);
+if (empty($category)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NOCATEGORY);
+}
// Download not published, expired or taken offline - redirect
if ($download->getVar('published') == false || $download->getVar('published') > time() || $download->getVar('offline') == true || ($download->getVar('expired') != 0 && $download->getVar('expired') < time())) {
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/review.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/review.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/review.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -23,8 +23,14 @@
$lid = WfdownloadsRequest::getInt('lid', 0);
$download = $wfdownloads->getHandler('download')->get($lid);
+if (empty($download)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NODOWNLOAD);
+}
$cid = WfdownloadsRequest::getInt('cid', $download->getVar('cid'));
$category = $wfdownloads->getHandler('category')->get($cid);
+if (empty($category)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NOCATEGORY);
+}
// Download not published, expired or taken offline - redirect
if ($download->getVar('published') == 0 || $download->getVar('published') > time() || $download->getVar('offline') == true || ($download->getVar('expired') != 0 && $download->getVar('expired') < time()) || $download->getVar('status') == 0) {
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -23,8 +23,14 @@
$lid = WfdownloadsRequest::getInt('lid', 0);
$download = $wfdownloads->getHandler('download')->get($lid);
+if (empty($download)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NODOWNLOAD);
+}
$cid = WfdownloadsRequest::getInt('cid', $download->getVar('cid'));
$category = $wfdownloads->getHandler('category')->get($cid);
+if (empty($category)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NOCATEGORY);
+}
// Check permissions
$userGroups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(0=>XOOPS_GROUP_ANONYMOUS);
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_common_letterschoice.html
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_common_letterschoice.html 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_common_letterschoice.html 2013-10-02 16:08:49 UTC (rev 12120)
@@ -20,11 +20,13 @@
font-style:normal;
height:20px;
line-height:20px;
- width:18px;
+ width:auto;
+ min-width:10px;
text-decoration:none;
text-align:center;
text-shadow:1px 1px 0px #d9fbbe;
margin: 2px 0px;
+ padding: 0px 4px;
}
.button_green:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #b8e356), color-stop(1, #a5cc52) );
@@ -54,11 +56,13 @@
font-style:normal;
height:20px;
line-height:20px;
- width:18px;
+ width:auto;
+ min-width:10px;
text-decoration:none;
text-align:center;
text-shadow:1px 1px 0px #ffffff;
margin: 2px 0px;
+ padding: 0px 4px;
}
.button_grey:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_viewcat.html
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_viewcat.html 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_viewcat.html 2013-10-02 16:08:49 UTC (rev 12120)
@@ -64,21 +64,131 @@
<div>
<h3><{$smarty.const._MD_WFDOWNLOADS_DOWNLOADSLISTING}></h3>
<{if $show_links == true}>
+<style type="text/css">
+.button_green {
+ -moz-box-shadow:inset 0px 1px 0px 0px #d9fbbe;
+ -webkit-box-shadow:inset 0px 1px 0px 0px #d9fbbe;
+ box-shadow:inset 0px 1px 0px 0px #d9fbbe;
+ background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #d9fbbe), color-stop(1, #d9fbbe) );
+ background:-moz-linear-gradient( center top, #a5cc52 5%, #d9fbbe 100% );
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d9fbbe', endColorstr='#b8e356');
+ background-color:#d9fbbe;
+ -webkit-border-radius:2px;
+ -moz-border-radius:2px;
+ border-radius:2px;
+ text-indent:0;
+ border:1px solid #83c41a;
+ display:inline-block;
+ color:inherit;
+ font-family:inherit;
+ font-size:12px;
+ font-weight:bold;
+ font-style:normal;
+ height:20px;
+ line-height:20px;
+ width:auto;
+ min-width:10px;
+ text-decoration:none;
+ text-align:center;
+ text-shadow:1px 1px 0px #d9fbbe;
+ margin: 2px 0px;
+ padding: 0px 4px;
+}
+.button_green:hover {
+ background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #b8e356), color-stop(1, #a5cc52) );
+ background:-moz-linear-gradient( center top, #b8e356 5%, #a5cc52 100% );
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#b8e356', endColorstr='#a5cc52');
+ background-color:#86ae47;
+}.button_green:active {
+ position:relative;
+ top:1px;
+}
+
+.button_grey {
+ background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
+ background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
+ background-color:#ededed;
+ -webkit-border-radius:2px;
+ -moz-border-radius:2px;
+ border-radius:2px;
+ text-indent:0;
+ border:1px solid #dcdcdc;
+ display:inline-block;
+ color:inherit;
+ font-family:inherit;
+ font-size:12px;
+ font-weight:bold;
+ font-style:normal;
+ height:20px;
+ line-height:20px;
+ width:auto;
+ min-width:10px;
+ text-decoration:none;
+ text-align:center;
+ text-shadow:1px 1px 0px #ffffff;
+ margin: 2px 0px;
+ padding: 0px 4px;
+}
+.button_grey:hover {
+ background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
+ background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
+ background-color:#dfdfdf;
+}.button_grey:active {
+ position:relative;
+ top:1px;
+}
+</style>
<div>
- <small>
- <b><{$smarty.const._MD_WFDOWNLOADS_SORTBY}></b>
- <a href="viewcat.php?cid=<{$category_cid}>&orderby=titleA"><{$smarty.const._MD_WFDOWNLOADS_TITLE}> ↑</a> <a href="viewcat.php?cid=<{$category_cid}>&orderby=titleD"><{$smarty.const._MD_WFDOWNLOADS_TITLE}> ↓</a>
+ <small><b><span title="<{$smarty.const._MD_WFDOWNLOADS_SORTDOWNLOADSBY}>"><{$lang_cursortedby}></span></b></small>
+ <div>
+ <{if ($orderby == "titleA")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_TITLEATOZ}>"><{$smarty.const._MD_WFDOWNLOADS_TITLE}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=titleA" title="<{$smarty.const._MD_WFDOWNLOADS_TITLEATOZ}>"><{$smarty.const._MD_WFDOWNLOADS_TITLE}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></a>
+ <{/if}>
+ <{if ($orderby == "titleD")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_TITLEZTOA}>"><{$smarty.const._MD_WFDOWNLOADS_TITLE}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=titleD" title="<{$smarty.const._MD_WFDOWNLOADS_TITLEZTOA}>"><{$smarty.const._MD_WFDOWNLOADS_TITLE}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></a>
+ <{/if}>
|
- <a href="viewcat.php?cid=<{$category_cid}>&orderby=dateA"><{$smarty.const._MD_WFDOWNLOADS_DATE}> ↑</a> <a href="viewcat.php?cid=<{$category_cid}>&orderby=dateD"><{$smarty.const._MD_WFDOWNLOADS_DATE}> ↓</a>
+ <{if ($orderby == "dateA")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_DATEOLD}>"><{$smarty.const._MD_WFDOWNLOADS_DATE}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=dateA" title="<{$smarty.const._MD_WFDOWNLOADS_DATEOLD}>"><{$smarty.const._MD_WFDOWNLOADS_DATE}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></a>
+ <{/if}>
+ <{if ($orderby == "dateD")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_DATENEW}>"><{$smarty.const._MD_WFDOWNLOADS_DATE}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=dateD" title="<{$smarty.const._MD_WFDOWNLOADS_DATENEW}>"><{$smarty.const._MD_WFDOWNLOADS_DATE}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></a>
+ <{/if}>
|
<{if $use_ratings == true}>
- <a href="viewcat.php?cid=<{$category_cid}>&orderby=ratingA"><{$smarty.const._MD_WFDOWNLOADS_RATING}> ↑</a> <a href="viewcat.php?cid=<{$category_cid}>&orderby=ratingD"><{$smarty.const._MD_WFDOWNLOADS_RATING}> ↓</a>
+ <{if ($orderby == "ratingA")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_RATINGLTOH}>"><{$smarty.const._MD_WFDOWNLOADS_RATING}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=ratingA" title="<{$smarty.const._MD_WFDOWNLOADS_RATINGLTOH}>"><{$smarty.const._MD_WFDOWNLOADS_RATING}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></a>
+ <{/if}>
+ <{if ($orderby == "ratingD")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_RATINGHTOL}>"><{$smarty.const._MD_WFDOWNLOADS_RATING}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=ratingD" title="<{$smarty.const._MD_WFDOWNLOADS_RATINGHTOL}>"><{$smarty.const._MD_WFDOWNLOADS_RATING}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></a>
+ <{/if}>
|
<{/if}>
- <a href="viewcat.php?cid=<{$category_cid}>&orderby=hitsA"><{$smarty.const._MD_WFDOWNLOADS_POPULARITY}> ↑</a> <a href="viewcat.php?cid=<{$category_cid}>&orderby=hitsD"><{$smarty.const._MD_WFDOWNLOADS_POPULARITY}> ↓</a>
- <br />
- <b><{$lang_cursortedby}></b>
- </small>
+ <{if ($orderby == "hitsA")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_POPULARITYLTOM}>"><{$smarty.const._MD_WFDOWNLOADS_POPULARITY}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=hitsA" title="<{$smarty.const._MD_WFDOWNLOADS_POPULARITYLTOM}>"><{$smarty.const._MD_WFDOWNLOADS_POPULARITY}> <img src="<{xoModuleIcons16 up.gif}>" alt="↑"></a>
+ <{/if}>
+ <{if ($orderby == "hitsD")}>
+ <span class='button_green' title="<{$smarty.const._MD_WFDOWNLOADS_POPULARITYMTOL}>"><{$smarty.const._MD_WFDOWNLOADS_POPULARITY}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></span>
+ <{else}>
+ <a class='button_grey' href="viewcat.php?cid=<{$category_cid}>&orderby=hitsD" title="<{$smarty.const._MD_WFDOWNLOADS_POPULARITYMTOL}>"><{$smarty.const._MD_WFDOWNLOADS_POPULARITY}> <img src="<{xoModuleIcons16 down.gif}>" alt="↓"></a>
+ <{/if}>
+ </div>
</div>
<{/if}>
<br />
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -24,6 +24,7 @@
$cid = WfdownloadsRequest::getInt('cid', 0);
$start = WfdownloadsRequest::getInt('start', 0);
//$list = WfdownloadsRequest::getString('list', null);
+//$orderby = WfdownloadsRequest::getString('orderby', null);
$orderby = isset($_GET['orderby']) ? convertorderbyin($_GET['orderby']) : $wfdownloads->getConfig('filexorder');
$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(0=>XOOPS_GROUP_ANONYMOUS);
@@ -54,6 +55,12 @@
}
}
+// Get category object
+$category = $wfdownloads->getHandler('category')->get($cid);
+if (empty($category)) {
+ redirect_header('index.php', 3, _CO_WFDOWNLOADS_ERROR_NOCATEGORY);
+}
+
// Get download/upload permissions
$allowedDownCategoriesIds = $gperm_handler->getItemIds('WFDownCatPerm', $groups, $wfdownloads->getModule()->mid());
$allowedUpCategoriesIds = $gperm_handler->getItemIds('WFUpCatPerm', $groups, $wfdownloads->getModule()->mid());
@@ -65,7 +72,6 @@
$xoTheme->addStylesheet(WFDOWNLOADS_URL . '/thickbox.css');
$xoopsTpl->assign('wfdownloads_url', WFDOWNLOADS_URL . '/');
-$category = $wfdownloads->getHandler('category')->get($cid);
$xoopsTpl->assign('cid', $cid); // this definition is not removed for compatibility issues
$xoopsTpl->assign('category_id', $cid); // this definition is not removed for compatibility issues
$xoopsTpl->assign('category_cid', $cid);
@@ -255,6 +261,7 @@
if ($downloads_count > 1 && $cid != 0) {
$xoopsTpl->assign('show_links', true);
$orderbyTrans = convertorderbytrans($orderby);
+ $xoopsTpl->assign('orderby', convertorderbyout($orderby));
$xoopsTpl->assign('lang_cursortedby', sprintf(_MD_WFDOWNLOADS_CURSORTBY, convertorderbytrans($orderby)));
$orderby = convertorderbyout($orderby);
}
@@ -282,7 +289,7 @@
$xoopsTpl->assign('pagenav', $pagenav->renderNav());
}
-$xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_mirrors'));
+$xoopsTpl->assign('use_mirrors', $wfdownloads->getConfig('enable_mirrors'));
$xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_ratings'));
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_rss', $wfdownloads->getConfig('enablerss'));
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php 2013-10-02 12:41:05 UTC (rev 12119)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php 2013-10-02 16:08:49 UTC (rev 12120)
@@ -47,9 +47,9 @@
$modversion['onUpdate'] = 'include/module.php';
$modversion['onUninstall'] = 'include/module.php';
-$modversion['date'] = '2013-09-30';
-$modversion['release_date'] = '2013/09/30';
-$modversion['releasedate'] = '2013-09-30';
+$modversion['date'] = '2013-10-02';
+$modversion['release_date'] = '2013/10/02';
+$modversion['releasedate'] = '2013-10-02';
$modversion['status'] = 'BETA 1';
$modversion['teammembers'] = "Bender, David, FrankBlack, Xpider, M0nty, Mithrandir, Marcan, felix[fx2024], Sudhaker, Jegelstaff";
|