@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | |
96 | 96 | include_once $GLOBALS['xoops']->path('/class/xoopsformloader.php'); |
97 | 97 | |
98 | - $caption = ($this->isNew()) ? _AM_XOOPSFAQ_CREATE_NEW: sprintf(_AM_XOOPSFAQ_MODIFY_ITEM, $this->getVar('contents_title')); |
|
98 | + $caption = ($this->isNew()) ? _AM_XOOPSFAQ_CREATE_NEW : sprintf(_AM_XOOPSFAQ_MODIFY_ITEM, $this->getVar('contents_title')); |
|
99 | 99 | $form = new XoopsThemeForm($caption, 'content', $_SERVER['REQUEST_URI'], 'post', true); |
100 | 100 | // $form->addElement(new XoopsFormHiddenToken()); |
101 | 101 | $form->addElement(new xoopsFormHidden('op', 'save')); |
102 | 102 | $form->addElement(new xoopsFormHidden('contents_id', $this->getVar('contents_id', 'e'))); |
103 | 103 | |
104 | 104 | // Active |
105 | - $contents_active = new XoopsFormRadioYN(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE, 'contents_active', $this->getVar('contents_active', 'e'), ' ' . _YES . '', ' ' . _NO . '' ); |
|
105 | + $contents_active = new XoopsFormRadioYN(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE, 'contents_active', $this->getVar('contents_active', 'e'), ' ' . _YES . '', ' ' . _NO . ''); |
|
106 | 106 | $contents_active->setDescription(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE_DESC); |
107 | 107 | $form->addElement($contents_active, false); |
108 | 108 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $form->addElement($contents_weight, false); |
128 | 128 | |
129 | 129 | // Editor |
130 | - $options_tray = new XoopsFormElementTray(_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>'); |
|
130 | + $options_tray = new XoopsFormElementTray(_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>'); |
|
131 | 131 | if (class_exists('XoopsFormEditor')) { |
132 | 132 | // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'], |
133 | 133 | $editorConfigs = array('editor' => $xfHelper->getConfig('use_wysiwyg', 'dhtmltextarea'), |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | $ret = array(); |
300 | 300 | $sql = 'SELECT contents_cid '; |
301 | 301 | $sql .= 'FROM `' . $this->table . '` '; |
302 | - $sql .= 'WHERE (contents_active =\''. XoopsfaqConstants::ACTIVE . '\') '; |
|
302 | + $sql .= 'WHERE (contents_active =\'' . XoopsfaqConstants::ACTIVE . '\') '; |
|
303 | 303 | $sql .= 'GROUP BY contents_cid'; |
304 | 304 | if (!$result = $this->db->query($sql)) { |
305 | 305 | return $ret; |