Changeset 2360 in ExiteCMS for trunk/forum/post.php


Ignore:
Timestamp:
07/26/10 12:06:04 (22 months ago)
Author:
WanWizard
Message:

added a forum option to enable/disable the use of subject prefixes per forum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/post.php

    r2358 r2360  
    7272 
    7373    // is a prefix required? 
    74     if (!empty($fdata['forum_prefixes']) && empty($_POST['new_prefix'])) { 
     74    if ($fdata['forum_prefix'] && !empty($fdata['forum_prefixes']) && empty($_POST['new_prefix'])) { 
    7575        return $locale['475']; 
    7676    } 
     
    691691                        } 
    692692                    } 
    693                     $subject = add_prefix($subject, stripinput($_POST['new_prefix'])); 
     693                    if ($fdata['forum_prefix']) { 
     694                        $subject = add_prefix($subject, stripinput($_POST['new_prefix'])); 
     695                    } 
    694696                    $message = trim(stripmessageinput(censorwords($_POST['message']))); 
    695697                    if ($action == 'edit') { 
Note: See TracChangeset for help on using the changeset viewer.