|
From: <ir...@us...> - 2013-08-15 02:25:22
|
Revision: 11922
http://sourceforge.net/p/xoops/svn/11922
Author: irmtfan
Date: 2013-08-15 02:25:18 +0000 (Thu, 15 Aug 2013)
Log Message:
-----------
1- bug fix: check if xoops poll module is available in newbb/admin/index.php (Cesag)
Modified Paths:
--------------
XoopsModules/newbb/branches/irmtfan/newbb/admin/index.php
XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt
Modified: XoopsModules/newbb/branches/irmtfan/newbb/admin/index.php
===================================================================
--- XoopsModules/newbb/branches/irmtfan/newbb/admin/index.php 2013-08-14 20:52:34 UTC (rev 11921)
+++ XoopsModules/newbb/branches/irmtfan/newbb/admin/index.php 2013-08-15 02:25:18 UTC (rev 11922)
@@ -169,14 +169,18 @@
if ($newXoopsModuleGui) {
$indexAdmin->addInfoBox(_AM_NEWBB_PREFERENCES) ;
- // START irmtfan better poll module display link and version
- $pollLink = "<a href=\"" . XOOPS_URL . "/modules/" . $xoopspoll->getVar('dirname') . "/admin/index.php\"";
- $pollLink .= " alt=\"" . $xoopspoll->getVar('name') . " " . _VERSION . " (" . $xoopspoll->getInfo('version') .") \"";
- $pollLink .= " title=\"" . $xoopspoll->getVar('name') . " " . _VERSION . " (" . $xoopspoll->getInfo('version') .") \"";
- $pollLink .= ">" . "(". $xoopspoll->getVar('name') . ")</a>";
-
- $indexAdmin->addInfoBoxLine(_AM_NEWBB_PREFERENCES, "<infotext>" ._AM_NEWBB_POLLMODULE.': %s'. "</infotext>", ($isOK)?_AM_NEWBB_AVAILABLE . ": " . $pollLink : _AM_NEWBB_NOTAVAILABLE , 'Green') ;
- // END irmtfan better poll module display link and version
+ // START irmtfan better poll module display link and version - check if xoops poll module is available
+ if ($isOK) {
+ $pollLink = _AM_NEWBB_AVAILABLE . ": ";
+ $pollLink .= "<a href=\"" . XOOPS_URL . "/modules/" . $xoopspoll->getVar('dirname') . "/admin/index.php\"";
+ $pollLink .= " alt=\"" . $xoopspoll->getVar('name') . " " . _VERSION . " (" . $xoopspoll->getInfo('version') .") \"";
+ $pollLink .= " title=\"" . $xoopspoll->getVar('name') . " " . _VERSION . " (" . $xoopspoll->getInfo('version') .") \"";
+ $pollLink .= ">" . "(". $xoopspoll->getVar('name') . ")</a>";
+ } else {
+ $pollLink = _AM_NEWBB_NOTAVAILABLE;
+ }
+ $indexAdmin->addInfoBoxLine(_AM_NEWBB_PREFERENCES, "<infotext>" ._AM_NEWBB_POLLMODULE.': %s'. "</infotext>", $pollLink , 'Green') ;
+ // END irmtfan better poll module display link and version - check if xoops poll module is available
$indexAdmin->addInfoBoxLine(_AM_NEWBB_PREFERENCES, "<infotext>" ._AM_NEWBB_IMAGEMAGICK. ' %s'."</infotext>", (array_key_exists('imagemagick',$imageLibs)) ? _AM_NEWBB_AUTODETECTED.$imageLibs['imagemagick'] :_AM_NEWBB_NOTAVAILABLE , 'Green') ;
$indexAdmin->addInfoBoxLine(_AM_NEWBB_PREFERENCES, "<infotext>" .'NetPBM'.': %s'."</infotext>", array_key_exists('netpbm',$imageLibs) ? _AM_NEWBB_AUTODETECTED.$imageLibs['netpbm'] :_AM_NEWBB_NOTAVAILABLE, 'Green') ;
$indexAdmin->addInfoBoxLine(_AM_NEWBB_PREFERENCES, "<infotext>" ._AM_NEWBB_GDLIB1.' %s'. "</infotext>", array_key_exists('gd1',$imageLibs) ? _AM_NEWBB_AUTODETECTED.$imageLibs['gd1'] :_AM_NEWBB_NOTAVAILABLE, 'Red') ;
Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt
===================================================================
--- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-08-14 20:52:34 UTC (rev 11921)
+++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-08-15 02:25:18 UTC (rev 11922)
@@ -1,3 +1,7 @@
+date 2013-08-15
+===================================
+1- bug fix: check if xoops poll module is available in newbb/admin/index.php (Cesag)
+
date 2013-05-28
===================================
1- improve: rewrite topic synchronization function. add pid sync and remove hard-code db access in newbb/class/topic.php
|