| @@ 1492-1497 (lines=6) @@ | ||
| 1489 | $registry = new news_registryfile('news_metagen_options.txt'); |
|
| 1490 | $content = ''; |
|
| 1491 | $content = $registry->getfile(); |
|
| 1492 | if (xoops_trim($content) != '') { |
|
| 1493 | list($keywordscount, $keywordsorder) = explode(',', $content); |
|
| 1494 | } else { |
|
| 1495 | $keywordscount = $cfg['meta_keywords_count']; |
|
| 1496 | $keywordsorder = $cfg['meta_keywords_order']; |
|
| 1497 | } |
|
| 1498 | $sform = new XoopsThemeForm(_OPTIONS, 'metagenoptions', XOOPS_URL . '/modules/news/admin/index.php', 'post'); |
|
| 1499 | $sform->addElement(new XoopsFormHidden('op', 'metagenoptions'), false); |
|
| 1500 | $sform->addElement(new XoopsFormText(_AM_NEWS_META_KEYWORDS_CNT, 'keywordscount', 4, 6, $keywordscount), true); |
|
| @@ 413-418 (lines=6) @@ | ||
| 410 | $registry = new news_registryfile('news_metagen_options.txt'); |
|
| 411 | // $tcontent = ''; |
|
| 412 | $tcontent = $registry->getfile(); |
|
| 413 | if (xoops_trim($tcontent) != '') { |
|
| 414 | list($keywordscount, $keywordsorder) = explode(',', $tcontent); |
|
| 415 | } else { |
|
| 416 | $keywordscount = $cfg['meta_keywords_count']; |
|
| 417 | $keywordsorder = $cfg['meta_keywords_order']; |
|
| 418 | } |
|
| 419 | ||
| 420 | $tmp = array(); |
|
| 421 | // Search for the "Minimum keyword length" |
|