Check also default config mtime (bug #1467620).
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2006-04-10 Michal Čihař <michal@cihar.com>
|
||||||
|
* libraries/Config.class.php: Check also default config mtime (bug
|
||||||
|
#1467620).
|
||||||
|
|
||||||
2006-04-09 Marc Delisle <lem9@users.sourceforge.net>
|
2006-04-09 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_replace.php, libraries/dbi/mysqli.dbi.lib.php: bug #1255923,
|
* tbl_replace.php, libraries/dbi/mysqli.dbi.lib.php: bug #1255923,
|
||||||
detect and report silent truncation (mysqli only)
|
detect and report silent truncation (mysqli only)
|
||||||
|
@@ -27,6 +27,7 @@ class PMA_Config
|
|||||||
* @var int source modification time
|
* @var int source modification time
|
||||||
*/
|
*/
|
||||||
var $source_mtime = 0;
|
var $source_mtime = 0;
|
||||||
|
var $default_source_mtime = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var boolean
|
* @var boolean
|
||||||
@@ -286,6 +287,7 @@ class PMA_Config
|
|||||||
function __wakeup()
|
function __wakeup()
|
||||||
{
|
{
|
||||||
if (file_exists($this->getSource()) && $this->source_mtime !== filemtime($this->getSource())
|
if (file_exists($this->getSource()) && $this->source_mtime !== filemtime($this->getSource())
|
||||||
|
|| $this->default_source_mtime !== filemtime($this->default_source)
|
||||||
|| $this->error_config_file || $this->error_config_default_file) {
|
|| $this->error_config_file || $this->error_config_default_file) {
|
||||||
$this->settings = array();
|
$this->settings = array();
|
||||||
$this->load($this->getSource());
|
$this->load($this->getSource());
|
||||||
@@ -318,6 +320,8 @@ class PMA_Config
|
|||||||
}
|
}
|
||||||
include $this->default_source;
|
include $this->default_source;
|
||||||
|
|
||||||
|
$this->default_source_mtime = filemtime($this->default_source);
|
||||||
|
|
||||||
$this->default_server = $cfg['Servers'][1];
|
$this->default_server = $cfg['Servers'][1];
|
||||||
unset($cfg['Servers']);
|
unset($cfg['Servers']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user