Changeset 25677
- Timestamp:
- Nov 24, 2013, 5:50:38 PM (10 years ago)
- Location:
- extensions/plugin_lang_analysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/plugin_lang_analysis/admin.php
r23584 r25677 16 16 'PLA_STEP' => 'select', 17 17 'PLA_PLUGINS' => $plugins->fs_plugins, 18 'F_ACTION' => PLA_ADMIN ,18 'F_ACTION' => PLA_ADMIN.'&config', 19 19 )); 20 20 } 21 21 22 22 /* CONFIG */ 23 else if ( !isset($_GET['analyze']))23 else if (isset($_GET['config'])) 24 24 { 25 25 $files = list_plugin_files($_GET['plugin_id']); … … 72 72 73 73 /* ANALYSIS */ 74 else 74 else if (isset($_GET['analyze'])) 75 75 { 76 76 // save … … 242 242 'PLA_LANG_FILES' => array_keys($language_files), 243 243 'PLA_COUNTS' => $counts, 244 'U_BACK' => PLA_ADMIN.'&plugin_id='.$_GET['plugin_id'] ,244 'U_BACK' => PLA_ADMIN.'&plugin_id='.$_GET['plugin_id'].'&config', 245 245 )); 246 246 } -
extensions/plugin_lang_analysis/include/functions.inc.php
r23584 r25677 103 103 { 104 104 // l10n 105 if (preg_match_all('#l10n\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1}) (?:\s*)\)#', $line, $matches))105 if (preg_match_all('#l10n\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1})#', $line, $matches)) 106 106 { 107 107 for ($j=0; $j<count($matches[1]); ++$j) -
extensions/plugin_lang_analysis/template/analysis.tpl
r23488 r25677 55 55 {/html_style} 56 56 57 <form class="properties"> 57 58 <fieldset> 58 59 <legend>{'Analysis results'|@translate}</legend> … … 130 131 </table> 131 132 </fieldset> 133 </form> -
extensions/plugin_lang_analysis/template/select.tpl
r23472 r25677 1 {footer_script} {literal}1 {footer_script} 2 2 $('form#pla').submit(function() { 3 window.location.href = location.href+ '&plugin_id=' + $(this).find('select').val();3 window.location.href = $(this).attr('action') + '&plugin_id=' + $(this).find('select').val(); 4 4 return false; 5 5 }); 6 {/ literal}{/footer_script}6 {/footer_script} 7 7 8 8 <form method="GET" action="{$F_ACTION}" class="properties" id="pla">
Note: See TracChangeset
for help on using the changeset viewer.