Drupal 是一套開放源碼的內容管理平台,擁有多種實用的功能,可以用來建置從個人網誌到大型網路社群等各種類型的網站,例如華納唱片、紐約觀察報、Fast Company、Popular Science、SonyBMG、富比士、哈佛大學等網站,或是個人部落格(Tim Berners-Lee)、播客網站(TWIT.tv)、線上社群(SpreadFireFox.com)。
Drupal 是一套開放源碼的內容管理平台,擁有多種實用的功能,可以用來建置從個人網誌到大型網路社群等各種類型的網站,例如華納唱片、紐約觀察報、Fast Company、Popular Science、SonyBMG、富比士、哈佛大學等網站,或是個人部落格(Tim Berners-Lee)、播客網站(TWIT.tv)、線上社群(SpreadFireFox.com)。
Re: favorite_nodes,爲什麽會出現這種錯誤?
找到答案了:
Updates
#1 submitted by tolmi on February 3, 2007 - 20:41
The solution is simple. Run through the favorite_nodes.module and replate all natcasesort($node_types) with ksort($node_types) and you're good to go.
Reason: $node_types is an assoc array of node type objects with a string key. Simply sorting by the string key is what the autor of this module probably wanted to do, but in Drupal 5 node_get_types() has been alteret to return this kind of array. Procedure above brings back the desired functionality.
Re: favorite_nodes,爲什麽會出現這種錯誤?
Run through the favorite_nodes.module and replate all natcasesort($node_types) with ksort($node_types)
懇求翻譯>"<
philsu阿寬 Design & Create & Crazy life
Blog: http://blog.yam.com/user/philsu.html
Website: http://www.cdml.ic.tku.edu.tw/index.htm
Hemidemi: http://www.hemidemi.com/user/philsu/home
Re: favorite_nodes,爲什麽會出現這種錯誤?
應該是 replace 吧?
用 ksort($node_types) 取代 natcasesort($node_types)