install/includes/payload.php
changeset 627 460e483987ab
parent 626 be0e904eec17
child 685 17ebe24cdf85
--- a/install/includes/payload.php	Sat Jul 12 00:07:53 2008 -0400
+++ b/install/includes/payload.php	Sat Jul 12 00:31:44 2008 -0400
@@ -474,10 +474,10 @@
 
 function stg_set_version()
 {
-  global $db;
+  global $db, $session, $paths, $template, $plugins; // Common objects
   // log the upgrade
   $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,page_text,edit_summary) VALUES'
-         . '(\'security\', \'upgrade_enano\', ' . time() . ', \'[DEPRECATED]\', \'' . $db->escape($session->username) . '\', \'' . $db->escape($this_version) . '\', \'' . $db->escape($_SERVER['REMOTE_ADDR']) . '\');');
+         . '(\'security\', \'upgrade_enano\', ' . time() . ', \'[DEPRECATED]\', \'' . $db->escape($session->username) . '\', \'' . $db->escape(installer_enano_version()) . '\', \'' . $db->escape($_SERVER['REMOTE_ADDR']) . '\');');
   if ( !$q )
   {
     $db->_die();