Lines 126-131
Link Here
|
126 |
AND files.is_active "); |
126 |
AND files.is_active "); |
127 |
$plugins = array(); |
127 |
$plugins = array(); |
128 |
while( ($file_row = mysql_fetch_assoc($file_result)) != null ) { |
128 |
while( ($file_row = mysql_fetch_assoc($file_result)) != null ) { |
|
|
129 |
# strip source folder (bug 221675) |
130 |
$pattern = '/^([a-zA-Z0-9_-]+)\.([a-zA-Z0-9_-]+)\.(.*)\/(.*)\/(\1)\/(\2)\/(.*)\.properties$/i'; |
131 |
$replace = '${1}.${2}.${3}/${5}/${6}/${7}.properties'; |
132 |
$file_row['name'] = preg_replace($pattern, $replace, $file_row['name']); |
133 |
|
129 |
if( preg_match( "/^([a-zA-Z0-9\.]+)\/(.*)$/", $file_row['name'], $matches ) ) { |
134 |
if( preg_match( "/^([a-zA-Z0-9\.]+)\/(.*)$/", $file_row['name'], $matches ) ) { |
130 |
$file_row['subname'] = $matches[2]; |
135 |
$file_row['subname'] = $matches[2]; |
131 |
$plugins[$matches[1]][] = $file_row; |
136 |
$plugins[$matches[1]][] = $file_row; |