From: <var...@us...> - 2014-07-17 14:32:16
|
Revision: 8975 http://sourceforge.net/p/phpwiki/code/8975 Author: vargenau Date: 2014-07-17 14:32:09 +0000 (Thu, 17 Jul 2014) Log Message: ----------- Use public when needed Modified Paths: -------------- trunk/lib/ErrorManager.php trunk/lib/FileFinder.php trunk/lib/WikiDB/backend/PearDB.php trunk/lib/WikiDB.php Modified: trunk/lib/ErrorManager.php =================================================================== --- trunk/lib/ErrorManager.php 2014-07-17 14:14:29 UTC (rev 8974) +++ trunk/lib/ErrorManager.php 2014-07-17 14:32:09 UTC (rev 8975) @@ -49,7 +49,7 @@ * * As this is a singleton class, you should never call this. */ - private function ErrorManager() + public function ErrorManager() { $this->_handlers = array(); $this->_fatal_handler = false; Modified: trunk/lib/FileFinder.php =================================================================== --- trunk/lib/FileFinder.php 2014-07-17 14:14:29 UTC (rev 8974) +++ trunk/lib/FileFinder.php 2014-07-17 14:32:09 UTC (rev 8975) @@ -226,7 +226,7 @@ * * @return string path_separator. */ - private function _get_ini_separator() + public function _get_ini_separator() { return isWindows() ? ';' : ':'; // return preg_match('/^Windows/', php_uname()) @@ -258,7 +258,7 @@ * * @param $dir string Directory to add. */ - private function _append_to_include_path($dir) + public function _append_to_include_path($dir) { $dir = $this->slashifyPath($dir); if (!in_array($dir, $this->_path)) { @@ -286,7 +286,7 @@ * * @param $dir string Directory to add. */ - private function _prepend_to_include_path($dir) + public function _prepend_to_include_path($dir) { $dir = $this->slashifyPath($dir); // remove duplicates Modified: trunk/lib/WikiDB/backend/PearDB.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB.php 2014-07-17 14:14:29 UTC (rev 8974) +++ trunk/lib/WikiDB/backend/PearDB.php 2014-07-17 14:32:09 UTC (rev 8975) @@ -1006,7 +1006,7 @@ * Calls can be nested. The tables won't be unlocked until * _unlock_database() is called as many times as _lock_database(). */ - protected function lock($tables = false, $write_lock = true) + public function lock($tables = false, $write_lock = true) { if ($this->_lock_count++ == 0) $this->_lock_tables($write_lock); @@ -1028,7 +1028,7 @@ * * @see _lock_database */ - protected function unlock($tables = false, $force = false) + public function unlock($tables = false, $force = false) { if ($this->_lock_count == 0) return; Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2014-07-17 14:14:29 UTC (rev 8974) +++ trunk/lib/WikiDB.php 2014-07-17 14:32:09 UTC (rev 8975) @@ -110,7 +110,7 @@ * * @see open() */ - private function WikiDB(&$backend, $dbparams) + public function WikiDB(&$backend, $dbparams) { $this->_backend =& $backend; // don't do the following with the auth_dsn! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |