|
From: <be...@us...> - 2013-08-14 10:29:49
|
Revision: 11917
http://sourceforge.net/p/xoops/svn/11917
Author: beckmi
Date: 2013-08-14 10:29:47 +0000 (Wed, 14 Aug 2013)
Log Message:
-----------
adding missing instance
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-08-14 10:16:36 UTC (rev 11916)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-08-14 10:29:47 UTC (rev 11917)
@@ -295,6 +295,7 @@
global $xoopsUser;
include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
include_once(XOOPS_ROOT_PATH . "/class/tree.php");
+ $wfdownloads = WfdownloadsWfdownloads::getInstance();
$groups = $xoopsUser->getGroups();
|
|
From: <be...@us...> - 2013-09-08 15:51:59
|
Revision: 12011
http://sourceforge.net/p/xoops/svn/12011
Author: beckmi
Date: 2013-09-08 15:51:55 +0000 (Sun, 08 Sep 2013)
Log Message:
-----------
Bug fix: replacing Description with Summary
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-09-05 20:53:03 UTC (rev 12010)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-09-08 15:51:55 UTC (rev 12011)
@@ -236,7 +236,7 @@
if ($this->wfdownloads->getConfig('autosummary') == true || empty($summary))
{
$summaryLength = (int)$this->wfdownloads->getConfig('autosumlength');
- $summaryDescription = stripslashes($this->getVar('description'));
+ $summaryDescription = stripslashes($this->getVar('summary'));
if (strlen($summaryDescription) > $summaryLength) {
$summaryDescription = substr($summaryDescription, 0, $summaryLength);
$summaryDescription = trim(substr($summaryDescription, 0, strrpos($summaryDescription, ' '))) . ' ...';
|
|
From: <luc...@us...> - 2013-10-01 20:19:35
|
Revision: 12115
http://sourceforge.net/p/xoops/svn/12115
Author: luciorota
Date: 2013-10-01 20:19:32 +0000 (Tue, 01 Oct 2013)
Log Message:
-----------
Notice: Undefined variable: summaryLength in file /modules/wfdownloads/class/download.php line 247
fixed
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-10-01 17:11:18 UTC (rev 12114)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-10-01 20:19:32 UTC (rev 12115)
@@ -244,7 +244,7 @@
$maxSummaryLength = (int)$this->wfdownloads->getConfig('autosumlength');
$download['summary'] = $this->getVar('description');
if (strlen($download['summary']) > $maxSummaryLength) {
- $download['summary'] = wfdownloads_truncateHtml($download['summary'], $summaryLength, '...', false, true);
+ $download['summary'] = wfdownloads_truncateHtml($download['summary'], $maxSummaryLength, '...', false, true);
} else {
// NOP
}
|
|
From: <luc...@us...> - 2013-10-01 22:49:53
|
Revision: 12117
http://sourceforge.net/p/xoops/svn/12117
Author: luciorota
Date: 2013-10-01 22:49:50 +0000 (Tue, 01 Oct 2013)
Log Message:
-----------
fixed autosummary error in multilanguage (using xlanguages module) contests, i hope ;-)
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-10-01 20:23:34 UTC (rev 12116)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-10-01 22:49:50 UTC (rev 12117)
@@ -242,7 +242,15 @@
($this->wfdownloads->getConfig('autosummary') == _WFDOWNLOADS_AUTOSUMMARY_IFBLANK && empty($summary))) {
// generate autosummary
$maxSummaryLength = (int)$this->wfdownloads->getConfig('autosumlength');
- $download['summary'] = $this->getVar('description');
+
+ if (wfdownloads_checkModule('xlanguage')) {
+ global $xlanguage;
+ include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php');
+ include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php');
+ $download['summary'] = xlanguage_ml($this->getVar('description'));
+ } else {
+ $download['summary'] = $this->getVar('description');
+ }
if (strlen($download['summary']) > $maxSummaryLength) {
$download['summary'] = wfdownloads_truncateHtml($download['summary'], $maxSummaryLength, '...', false, true);
} else {
@@ -255,11 +263,11 @@
$download['description'] = $this->getVar('description'); //no html
$download['price'] = ($this->getVar('price') != 0) ? $this->getVar('price') : _MD_WFDOWNLOADS_PRICEFREE;
$limitationsArray = $this->wfdownloads->getConfig('limitations');
- $download['limitations'] = ($this->getVar('limitations') == "") ? _MD_WFDOWNLOADS_NOTSPECIFIED : $myts->htmlSpecialChars(trim($limitationsArray[$this->getVar('limitations')]));
+ $download['limitations'] = ($this->getVar('limitations') == '') ? _MD_WFDOWNLOADS_NOTSPECIFIED : $myts->htmlSpecialChars(trim($limitationsArray[$this->getVar('limitations')]));
$versiontypesArray = $this->wfdownloads->getConfig('versiontypes');
- $download['versiontypes'] = ($this->getVar('versiontypes') == "") ? _MD_WFDOWNLOADS_NOTSPECIFIED : $myts->htmlSpecialChars(trim($versiontypesArray[$this->getVar('versiontypes')]));
+ $download['versiontypes'] = ($this->getVar('versionypes') == '') ? _MD_WFDOWNLOADS_NOTSPECIFIED : $myts->htmlSpecialChars(trim($versiontypesArray[$this->getVar('versiontypes')]));
$licenseArray = $this->wfdownloads->getConfig('license');
- $download['license'] = ($this->getVar('license')=="") ? _MD_WFDOWNLOADS_NOTSPECIFIED : $myts->htmlSpecialChars(trim($licenseArray[$this->getVar('license')]));
+ $download['license'] = ($this->getVar('license') == '') ? _MD_WFDOWNLOADS_NOTSPECIFIED : $myts->htmlSpecialChars(trim($licenseArray[$this->getVar('license')]));
$download['submitter'] = XoopsUserUtility::getUnameFromId($this->getVar('submitter'));
$publisher = $this->getVar('publisher');
if (!empty($publisher)) {
|
|
From: <luc...@us...> - 2013-10-05 23:32:53
|
Revision: 12141
http://sourceforge.net/p/xoops/svn/12141
Author: luciorota
Date: 2013-10-05 23:32:51 +0000 (Sat, 05 Oct 2013)
Log Message:
-----------
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-10-05 23:30:51 UTC (rev 12140)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-10-05 23:32:51 UTC (rev 12141)
@@ -91,8 +91,10 @@
// Added Formulize module support (2006/05/04) jpc - start
$this->initVar('formulize_idreq', XOBJ_DTYPE_INT, 0);
- // Added Formulize module support (2006/05/04) jpc - end
+ // Added 3.23
+ $this->initVar('screenshots', XOBJ_DTYPE_ARRAY, array());
+
if (isset($id)) {
$item = $this->wfdownloads->getHandler('item')->get($id);
foreach ($item->vars as $k => $v) {
@@ -434,8 +436,8 @@
}
- function getForm($customArray = array())
- { // $custom array added April 22, 2006 by jwe)
+ function getForm($customArray = array()) // $custom array added April 22, 2006 by jwe)
+ {
global $xoopsUser;
@@ -657,8 +659,8 @@
}
- function getAdminForm($title, $customArray = array())
- { // $custom array added April 22, 2006 by jwe
+ function getAdminForm($title, $customArray = array()) // $custom array added April 22, 2006 by jwe
+ {
global $xoopsUser;
include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
@@ -1099,7 +1101,6 @@
}
}
-
class WfdownloadsDownloadHandler extends XoopsPersistableObjectHandler
{
/**
|
|
From: <luc...@us...> - 2013-11-26 23:01:28
|
Revision: 12234
http://sourceforge.net/p/xoops/svn/12234
Author: luciorota
Date: 2013-11-26 23:01:25 +0000 (Tue, 26 Nov 2013)
Log Message:
-----------
fixed bug in submit form when anonymous users try to submit
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-11-26 17:15:27 UTC (rev 12233)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-11-26 23:01:25 UTC (rev 12234)
@@ -447,7 +447,7 @@
include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
include_once XOOPS_ROOT_PATH . '/class/tree.php';
- $groups = $xoopsUser->getGroups();
+ $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(0 => XOOPS_GROUP_ANONYMOUS);
$use_mirrors = $this->wfdownloads->getConfig('enable_mirrors');
|