diff --git a/ChangeLog b/ChangeLog index 3ed7eeb3f4..b198d4005c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog ====================== 4.3.0.0 (not yet released) +- rfe #1518 Confirm dialog on accidentally leaving a page 4.2.1.0 (not yet released) - bug #4380 Cannot display table structure with enums containing special characters diff --git a/README.rst b/README.rst index 5536c987b6..33a9b5b60a 100644 --- a/README.rst +++ b/README.rst @@ -5,28 +5,20 @@ A set of PHP-scripts to manage MySQL over the web. http://www.phpmyadmin.net/ -Status ------- - -Continuous integration: +Code status +----------- .. image:: https://secure.travis-ci.org/phpmyadmin/phpmyadmin.png?branch=master :alt: Build status :target: https://travis-ci.org/phpmyadmin/phpmyadmin -Translations: - .. image:: http://l10n.cihar.com/widgets/phpmyadmin-status-badge.png :alt: Translation status :target: https://l10n.cihar.com/engage/phpmyadmin/?utm_source=widget -Code coverage: - .. image:: https://coveralls.io/repos/phpmyadmin/phpmyadmin/badge.png?branch=master :target: https://coveralls.io/r/phpmyadmin/phpmyadmin?branch=master -Code quality: - .. image:: https://scrutinizer-ci.com/g/phpmyadmin/phpmyadmin/badges/quality-score.png?s=93dfde29ffa5771d9c254b7ffb11c4e673315035 :target: https://scrutinizer-ci.com/g/phpmyadmin/phpmyadmin/ diff --git a/libraries/navigation/NavigationTree.class.php b/libraries/navigation/NavigationTree.class.php index de9cc45cc1..f7fa6fee5e 100644 --- a/libraries/navigation/NavigationTree.class.php +++ b/libraries/navigation/NavigationTree.class.php @@ -796,6 +796,31 @@ class PMA_NavigationTree return $retval; } + /** + * Finds whether given tree matches this tree. + * + * @param array $tree Tree to check + * @param string $attribute Attribute to walk + * + * @return boolean + */ + private function _findTreeMatch($tree, $attribute) + { + foreach ($tree as $path) { + $match = true; + foreach ($paths[$attribute] as $key => $part) { + if (! isset($path[$key]) || $part != $path[$key]) { + $match = false; + break; + } + } + if ($match) { + break; + } + } + return $match; + } + /** * Renders a single node or a branch of the tree * @@ -839,14 +864,6 @@ class PMA_NavigationTree || (! in_array($parentName, $sterile) && ! $node->isNew) || (in_array($node->real_name, $sterile)) ) { - $loaded = ''; - if ($node->is_group) { - $loaded = ' loaded'; - } - $container = ''; - if ($node->type == Node::CONTAINER) { - $container = ' container'; - } $retval .= "