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


Ignore:
Timestamp:
12/03/07 21:40:54 (4 years ago)
Author:
hverton
Message:

added a locale type selection per module
fixed typo from 404handler.php
updated English language pack
fixed not being able to move a post to a thread in the same forum.post.move.tpl
getusergroups() now returns the array ordered by name
upgraded tiny_mce to version 2.1.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/post.php

    r1120 r1158  
    819819            if ($data['lastpost'] < $pdata['post_datestamp']) 
    820820                $result = dbquery("UPDATE ".$db_prefix."forums SET forum_lastpost='".$pdata['post_datestamp']."', forum_lastuser='".$pdata['post_author']."' WHERE forum_id='".$forum_id."'"); 
    821             // get the access group number for the new forum 
     821            // get the access group number for the new forum 
    822822            $result = dbquery("SELECT forum_access from ".$db_prefix."forums WHERE forum_id = ".$_POST['new_forum_id']); 
    823823            $data = dbarray($result); 
    824824            $group_id = $data['forum_access']; 
    825             // check for group inheritance 
    826             $groups = array(); 
    827             getgroupmembers($group_id); 
     825            // check for group inheritance 
     826            $groups = array(); 
     827            getgroupmembers($group_id); 
    828828            // update the posts_unread pointers 
    829829            $result = dbquery("SELECT * FROM ".$db_prefix."posts_unread WHERE post_id = '$post_id'"); 
     
    882882 
    883883        // get the data for the threads dropdown 
    884         $result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE forum_id='".$_POST['new_forum_id']."' ORDER BY thread_lastpost DESC"); 
     884        $result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE forum_id='".$_POST['new_forum_id']."' AND thread_id != '$thread_id' ORDER BY thread_lastpost DESC"); 
    885885        $variables['threads'] = array(); 
    886886        while ($data = dbarray($result)) { 
     
    928928            $variables['forums'][] = $data2; 
    929929        } 
    930  
    931930        // define the panel 
    932931        $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.1', 'template' => 'forum.post.move.tpl', 'locale' => array("forum.main", "forum.post")); 
Note: See TracChangeset for help on using the changeset viewer.