From: <var...@us...> - 2014-11-25 16:01:03
|
Revision: 9371 http://sourceforge.net/p/phpwiki/code/9371 Author: vargenau Date: 2014-11-25 16:01:00 +0000 (Tue, 25 Nov 2014) Log Message: ----------- Add static Modified Paths: -------------- trunk/lib/SemanticWeb.php trunk/lib/WikiDB/SQL.php trunk/lib/plugin/PhotoAlbum.php trunk/lib/wikilens/RatingsDb.php trunk/lib/wikilens/RatingsUser.php Modified: trunk/lib/SemanticWeb.php =================================================================== --- trunk/lib/SemanticWeb.php 2014-11-25 15:45:06 UTC (rev 9370) +++ trunk/lib/SemanticWeb.php 2014-11-25 16:01:00 UTC (rev 9371) @@ -210,7 +210,7 @@ /** This function transforms a valid url-encoded URI into a string * that can be used as an XML-ID. The mapping should be injective. */ - function makeXMLExportId($uri) + static function makeXMLExportId($uri) { $uri = str_replace('-', '-2D', $uri); //$uri = str_replace( ':', '-3A', $uri); //already done by PHP Modified: trunk/lib/WikiDB/SQL.php =================================================================== --- trunk/lib/WikiDB/SQL.php 2014-11-25 15:45:06 UTC (rev 9370) +++ trunk/lib/WikiDB/SQL.php 2014-11-25 16:01:00 UTC (rev 9371) @@ -23,7 +23,7 @@ parent::__construct($backend, $dbparams); } - function view_dsn($dsn = false) + static function view_dsn($dsn = false) { if (!$dsn) $dsninfo = DB::parseDSN($GLOBALS['DBParams']['dsn']); Modified: trunk/lib/plugin/PhotoAlbum.php =================================================================== --- trunk/lib/plugin/PhotoAlbum.php 2014-11-25 15:45:06 UTC (rev 9370) +++ trunk/lib/plugin/PhotoAlbum.php 2014-11-25 16:01:00 UTC (rev 9371) @@ -72,7 +72,7 @@ class ImageTile extends HtmlElement { // go away, hack! - function image_tile( /*...*/) + static function image_tile( /*...*/) { $el = new HTML ('img'); $tag = func_get_args(); Modified: trunk/lib/wikilens/RatingsDb.php =================================================================== --- trunk/lib/wikilens/RatingsDb.php 2014-11-25 15:45:06 UTC (rev 9370) +++ trunk/lib/wikilens/RatingsDb.php 2014-11-25 16:01:00 UTC (rev 9371) @@ -83,7 +83,7 @@ } // this is a singleton. It ensures there is only 1 ratingsDB. - function & getTheRatingsDb() + static function & getTheRatingsDb() { static $_theRatingsDb; Modified: trunk/lib/wikilens/RatingsUser.php =================================================================== --- trunk/lib/wikilens/RatingsUser.php 2014-11-25 15:45:06 UTC (rev 9370) +++ trunk/lib/wikilens/RatingsUser.php 2014-11-25 16:01:00 UTC (rev 9371) @@ -27,7 +27,7 @@ */ class RatingsUserFactory { - function & getUser($userid) + static function & getUser($userid) { //print "getUser($userid) "; global $_ratingsUserCache; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |