diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 8227f7815a..5488f79770 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -854,87 +854,46 @@ function PMA_getHtmlForRequires($row) */ function PMA_getHtmlForResourceLimits($row) { - $html_output = '
' . "\n" - . '' . __('Resource limits') . '' . "\n" - . '

' - . '' . __('Note: Setting these options to 0 (zero) removes the limit.') - . '

' . "\n"; - - $html_output .= '
' . "\n" - . '' . "\n" - . '' . "\n" - . '
' . "\n"; + ); - $html_output .= '
' . "\n" - . '' . "\n" - . '' . "\n" - . '
' . "\n"; - - $html_output .= '
' . "\n" - . '' . "\n" - . '' . "\n" - . '
' . "\n"; - - $html_output .= '
' . "\n" - . '' . "\n" - . '' . "\n" - . '
' . "\n"; + $html_output = Template::get('privileges/resource_limits') + ->render(array('limits' => $limits)); $html_output .= '
' . "\n"; diff --git a/templates/privileges/resource_limit_item.phtml b/templates/privileges/resource_limit_item.phtml new file mode 100644 index 0000000000..2d8b41b988 --- /dev/null +++ b/templates/privileges/resource_limit_item.phtml @@ -0,0 +1,11 @@ +
+ + +
\ No newline at end of file diff --git a/templates/privileges/resource_limits.phtml b/templates/privileges/resource_limits.phtml new file mode 100644 index 0000000000..648a54cff6 --- /dev/null +++ b/templates/privileges/resource_limits.phtml @@ -0,0 +1,16 @@ +
+ +

+ + + +

+ + render( + array('limit' => $limit) + ); + ?> + +
+