| @@ 1777-1782 (lines=6) @@ | ||
| 1774 | $registry = new news_registryfile('news_metagen_options.txt'); |
|
| 1775 | $content = ''; |
|
| 1776 | $content = $registry->getfile(); |
|
| 1777 | if (xoops_trim($content) !== '') { |
|
| 1778 | list($keywordscount, $keywordsorder) = explode(',', $content); |
|
| 1779 | } else { |
|
| 1780 | $keywordscount = $cfg['meta_keywords_count']; |
|
| 1781 | $keywordsorder = $cfg['meta_keywords_order']; |
|
| 1782 | } |
|
| 1783 | $sform = new XoopsThemeForm(_OPTIONS, 'metagenoptions', XOOPS_URL . '/modules/news/admin/index.php', 'post'); |
|
| 1784 | $sform->addElement(new XoopsFormHidden('op', 'metagenoptions'), false); |
|
| 1785 | $sform->addElement(new XoopsFormText(_AM_NEWS_META_KEYWORDS_CNT, 'keywordscount', 4, 6, $keywordscount), true); |
|
| @@ 415-420 (lines=6) @@ | ||
| 412 | $registry = new news_registryfile('news_metagen_options.txt'); |
|
| 413 | // $tcontent = ''; |
|
| 414 | $tcontent = $registry->getfile(); |
|
| 415 | if (xoops_trim($tcontent) !== '') { |
|
| 416 | list($keywordscount, $keywordsorder) = explode(',', $tcontent); |
|
| 417 | } else { |
|
| 418 | $keywordscount = $cfg['meta_keywords_count']; |
|
| 419 | $keywordsorder = $cfg['meta_keywords_order']; |
|
| 420 | } |
|
| 421 | ||
| 422 | $tmp = array(); |
|
| 423 | // Search for the "Minimum keyword length" |
|