Changeset 1268 in ExiteCMS


Ignore:
Timestamp:
02/12/08 00:28:01 (4 years ago)
Author:
hverton
Message:

update to allow the new forum_links config value to be set

Location:
modules/common/wiki/php-files/modules/wiki
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/common/wiki/php-files/modules/wiki/templates/modules.wiki.wiki_admin.tpl

    r1161 r1268  
    145145        </tr> 
    146146        <tr> 
     147            <td width='50%' class='tbl'> 
     148                Generate wiki links in forum posts 
     149            </td> 
     150            <td width='50%' class='tbl'> 
     151                <select name='forum_links' class='textbox'> 
     152                    <option value='0'{if $settings2.wiki_forum_links == "0"} selected="selected"{/if}>{$locale.414}</option> 
     153                    <option value='1'{if $settings2.wiki_forum_links == "1"} selected="selected"{/if}>{$locale.413}</option> 
     154                </select> 
     155                <span class='small'>Only for known keywords. You can use the [wiki] bbcode to manually make a link</span> 
     156            </td> 
     157        </tr> 
     158        <tr> 
    147159            <td align='center' colspan='2' class='tbl'> 
    148160                <br /> 
  • modules/common/wiki/php-files/modules/wiki/wiki_admin.php

    r1223 r1268  
    3939    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".stripinput($_POST['default_comment_acl'])."' WHERE cfg_name = 'wiki_default_comment_acl'"); 
    4040    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".stripinput($_POST['admin_group'])."' WHERE cfg_name = 'wiki_admin_group'"); 
     41    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".stripinput($_POST['forum_links'])."' WHERE cfg_name = 'wiki_forum_links'"); 
    4142    // if the name of the homepage has changed, update the wiki record 
    4243    if ($settings['wiki_root_page'] != stripinput($_POST['root_page'])) { 
Note: See TracChangeset for help on using the changeset viewer.