Administration bug

nickistre - November 4, 2006 - 01:13
Project:UIE Forum
Version:4.7.x-1.x-dev
Component:Admin/Moderator
Category:bug report
Priority:normal
Assigned:zoro
Status:closed
Description

I was having a problem with the administration tasks on posts where, for example, I wanted to splt a thread somewhere, when I do the drop down on the list and select "split", the browser would go to "http://admin/uieforum/split/thread/44" instead of "http://www.example.com/admin/uieforum/split/thread/44".

Well, digging through the code and poke at it a bit, I found a fix!

In functions.inc.php, on line 1122 where it shows:

t(url('/admin/'.uieforum_get_module_menu_name().'/edit/post/'.$PostID)) => t('Delete Post'),
t(url('/admin/'.uieforum_get_module_menu_name().'/edit/post/move/'.$PostID)) => t('Move Post'),
t(url('/admin/'.uieforum_get_module_menu_name().'/split/thread/'.$PostID)) => t('Split Thread'),
t(url('/admin/'.uieforum_get_module_menu_name().'/merge/thread/'.$ThreadID)) => t('Merge Thread')

The '/' in front of admin needs to be removed, so the code looks like:

t(url('admin/'.uieforum_get_module_menu_name().'/edit/post/'.$PostID)) => t('Delete Post'),
t(url('admin/'.uieforum_get_module_menu_name().'/edit/post/move/'.$PostID)) => t('Move Post'),
t(url('admin/'.uieforum_get_module_menu_name().'/split/thread/'.$PostID)) => t('Split Thread'),
t(url('admin/'.uieforum_get_module_menu_name().'/merge/thread/'.$ThreadID)) => t('Merge Thread')

This fixed this problem for me. Hopefully, this might fix it for others.

#1

zoro - November 10, 2006 - 07:40

Nice find - thanks

#2

zoro - November 10, 2006 - 07:42
Assigned to:Anonymous» zoro
Status:active» fixed

#3

Anonymous - November 24, 2006 - 07:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.