From: <ma...@us...> - 2012-05-20 12:46:57
|
Revision: 9561 http://xoops.svn.sourceforge.net/xoops/?rev=9561&view=rev Author: mageg Date: 2012-05-20 12:46:50 +0000 (Sun, 20 May 2012) Log Message: ----------- The description is no longer displayed with the title to the preferences of modules / plugins Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/preference.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/preference.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/preference.php 2012-05-20 12:36:17 UTC (rev 9560) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/preference.php 2012-05-20 12:46:50 UTC (rev 9561) @@ -39,7 +39,7 @@ { $xoops = Xoops::getInstance(); $config_handler = $xoops->getHandlerConfig(); - + parent::__construct(constant($obj->getVar('confcat_name')), 'pref_form', 'admin.php?fct=preferences', 'post', true); $criteria = new CriteriaCompo(); @@ -48,7 +48,7 @@ $config = $config_handler->getConfigs($criteria); $count = count($config); for ($i = 0; $i < $count; $i++) { - + $title = constant($config[$i]->getVar('conf_title')); $desc = ($config[$i]->getVar('conf_desc') != '') ? constant($config[$i]->getVar('conf_desc')) : ''; @@ -263,9 +263,8 @@ } $count = count($obj); for ($i = 0; $i < $count; $i++) { - $title = (!defined($obj[$i]->getVar('conf_desc')) || constant($obj[$i]->getVar('conf_desc')) == '') - ? constant($obj[$i]->getVar('conf_title')) - : constant($obj[$i]->getVar('conf_title')) . '<br /><br /><span style="font-weight:normal;">' . constant($obj[$i]->getVar('conf_desc')) . '</span>'; + $title = constant($obj[$i]->getVar('conf_title')); + $desc = ($obj[$i]->getVar('conf_desc') != '') ? constant($obj[$i]->getVar('conf_desc')) : ''; switch ($obj[$i]->getVar('conf_formtype')) { case 'textarea': @@ -357,6 +356,7 @@ $hidden = new XoopsFormHidden('conf_ids[]', $obj[$i]->getVar('conf_id')); if (isset($ele)) { $this->addElement($ele); + $ele->setDescription($desc); $this->addElement($hidden); unset($ele); unset($hidden); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |