Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sun Jun 27, 2010 7:24 pm Reply with quote

I noticed that the modules are using
Code:
$module_name = basename(dirname(__FILE__));

 

Rather then example:
Code:


$module_name = 'Your_Account';

But nothing like it in the admin links and case files making renaming modules permanently limited to the admin>>module >>edit>> modulename or hacking about in the actual files.

I'd request adopting this in admin links and case files.
Code:
$module_name = basename(dirname(dirname(__FILE__)));


This would make a quick fix for changing module names by renaming the directory.

Any issues with this method?[/code]

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Mon Jun 28, 2010 10:00 am Reply with quote

I have always use it and never had a problem with it nor anybody have ever reported something.

Agree, we need to make it standard for us...

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Jun 28, 2010 10:20 am Reply with quote

I thought I replied to this yesterday, but I have entered the request into our issue tracker.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Palbin







PostPosted: Sat Jul 24, 2010 8:45 pm Reply with quote

This has been completed for the next release. I can not guarantee that there are not other hard coded thing, but all $module_name variables have been changed.
 
sixonetonoffun







PostPosted: Sun Jul 25, 2010 11:23 pm Reply with quote

Super Palbin anxious to see any functional updates!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©