[Bb-trac] Re: [bbPress] #954: function bb__basename is completely broken under Windows

bbPress bb-trac at lists.bbpress.org
Mon Sep 1 18:37:20 GMT 2008


#954: function bb__basename is completely broken under Windows
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |        Owner:                    
     Type:  defect    |       Status:  new               
 Priority:  high      |    Milestone:  1.0-beta & XML-RPC
Component:  Back-end  |      Version:  0.9.0.2           
 Severity:  major     |   Resolution:                    
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by _ck_):

 My workaround (tested working on both linux and windows)

 {{{
 $plugin_pseudo_name=str_replace(array(str_replace("/","\\",BB_PLUGIN_DIR),str_replace("/","\\",BB_CORE_PLUGIN_DIR)),array("user#","core#"),__FILE__);

 bb_register_activation_hook($plugin_pseudo_name,
 'bb_attachments_install');
 }}}

-- 
Ticket URL: <http://trac.bbpress.org/ticket/954#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list