2012-06-20 32 views

回答

0

在_showSubcriptionList方法,

後{

if ($this->showListName) { 
      if(!$this->linear) 
       if(!$this->dropdown) 
        $html .= '<ul class="jNewsLists">'; 

}

添加語句 {

usort($this->lists, array("jnews_module", "cmp")); 

}

,並在類(jnews_module)添加函數 {

 function cmp($a, $b) 
{ 

if( $a->list_name == $b->list_name){ return 0 ; } 

return ($a->list_name < $b->list_name) ? -1 : 1; 
} 

}