- /* static */ function logToDB($name, $timeSum, $eventCount)
- {
- $name = wfStrencode( $name );
- $sql = "UPDATE profiling ".
+ /**
+ * @static
+ */
+ function logToDB($name, $timeSum, $eventCount) {
+ $dbw =& wfGetDB( DB_MASTER );
+ $profiling = $dbw->tableName( 'profiling' );
+
+ $name = substr($dbw->strencode( $name ),0,255);
+ $sql = "UPDATE $profiling ".