Changeset 6591

Show
Ignore:
Timestamp:
09/07/08 09:51:56 (3 months ago)
Author:
p_lindheimer
Message:

strip leading/trailingwhitespace and linefeed characters out of module.xml description field so that translations can more consistenly be done and so that when displayed, the text floats properly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/admin/functions.inc.php

    r6585 r6591  
    31843184                        $xmlarray['module']['name'] = str_replace("\n&\n","&",$xmlarray['module']['name']); 
    31853185                        $xmlarray['module']['displayname'] = $xmlarray['module']['name']; 
     3186                        if (isset($xmlarray['module']['description'])) { 
     3187                                $xmlarray['module']['description'] = trim(str_replace("\n","",$xmlarray['module']['description'])); 
     3188                        } 
    31863189                        if (isset($xmlarray['module']['menuitems'])) { 
    31873190                                 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads