From: <var...@us...> - 2012-12-10 17:10:00
|
Revision: 8638 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8638&view=rev Author: vargenau Date: 2012-12-10 17:09:53 +0000 (Mon, 10 Dec 2012) Log Message: ----------- Remove unused Modified Paths: -------------- trunk/lib/main.php Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2012-12-10 09:38:01 UTC (rev 8637) +++ trunk/lib/main.php 2012-12-10 17:09:53 UTC (rev 8638) @@ -356,11 +356,11 @@ * @return WikiDB_Page Object with methods to pull data from * database for the page requested. */ - function getPage($pagename = false) + function getPage($pagename = '') { - //if (!isset($this->_dbi)) $this->getDbh(); - if (!$pagename) + if (!$pagename) { $pagename = $this->getArg('pagename'); + } return $this->_dbi->getPage($pagename); } @@ -1351,7 +1351,7 @@ $value = $this->getArg('value'); $prefs =& $this->_user->_prefs; $prefs->set($what, $value); - $num = $this->_user->setPreferences($prefs); + $this->_user->setPreferences($prefs); } } @@ -1444,15 +1444,6 @@ $request->updateAuthAndPrefs(); $request->initializeLang(); - //FIXME: - //if ($user->is_authenticated()) - // $LogEntry->user = $user->getId(); - - // Memory optimization: - // http://www.procata.com/blog/archives/2004/05/27/rephlux-and-php-memory-usage/ - // kill the global PEAR _PEAR_destructor_object_list - if (!empty($_PEAR_destructor_object_list)) - $_PEAR_destructor_object_list = array(); $request->possiblyDeflowerVirginWiki(); $validators = array('wikiname' => WIKI_NAME, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |