Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Adriaenssens <ruleant@users.sourceforge.net>2012-09-10 20:27:38 +0400
committerDieter Adriaenssens <ruleant@users.sourceforge.net>2012-09-10 20:27:53 +0400
commit6a16006907f7fd6c0d98c09a317a392c34c6323c (patch)
tree66252b94dbe067f52ce0467a871e3f96d28851a3 /server_binlog.php
parentcfa3c5c7b14dc0e3667b2add09e6d2c317c11453 (diff)
simplify code
Diffstat (limited to 'server_binlog.php')
-rw-r--r--server_binlog.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/server_binlog.php b/server_binlog.php
index b387daffb6..058227f336 100644
--- a/server_binlog.php
+++ b/server_binlog.php
@@ -152,17 +152,18 @@ if ($pos > 0) {
}
if ($dontlimitchars) {
unset($this_url_params['dontlimitchars']);
- echo '<a href="server_binlog.php' . PMA_generate_common_url($this_url_params)
- . '" title="' . __('Truncate Shown Queries') . '">'
- . '<img src="' . $pmaThemeImage . 's_partialtext.png"'
- . 'alt="' . __('Truncate Shown Queries') . '" /></a>';
+ $tempTitle = __('Truncate Shown Queries');
+ $tempImgMode = 'partial';
} else {
$this_url_params['dontlimitchars'] = 1;
- echo '<a href="server_binlog.php' . PMA_generate_common_url($this_url_params)
- . '" title="' . __('Show Full Queries') . '">'
- . '<img src="' . $pmaThemeImage . 's_fulltext.png"'
- . 'alt="' . __('Show Full Queries') . '" /></a>';
+ $tempTitle = __('Show Full Queries');
+ $tempImgMode = 'full';
}
+echo '<a href="server_binlog.php' . PMA_generate_common_url($this_url_params)
+ . '" title="' . $tempTitle . '">'
+ . '<img src="' .$pmaThemeImage . 's_' . $tmpImgMode . 'text.png"'
+ . 'alt="' . $tempTitle . '" /></a>';
+
// we do not now how much rows are in the binlog
// so we can just force 'NEXT' button
if ($num_rows >= $GLOBALS['cfg']['MaxRows']) {