plugins/SpecialPageFuncs.php
changeset 345 4ccdfeee9a11
parent 343 eefe9ab7fe7c
child 387 92664d2efab8
--- a/plugins/SpecialPageFuncs.php	Mon Dec 31 21:43:51 2007 -0500
+++ b/plugins/SpecialPageFuncs.php	Thu Jan 03 00:53:33 2008 -0500
@@ -161,7 +161,7 @@
     if ( !$perms->get_permissions('create_page') )
       die_friendly($lang->get('pagetools_create_err_title'), '<p>An access control rule is preventing you from creating pages.</p>');
     
-    $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(time_id,date_string,log_type,action,author,page_id,namespace) VALUES('.time().', \''.date('d M Y h:i a').'\', \'page\', \'create\', \''.$session->username.'\', \''.$urlname.'\', \''.$_POST['namespace'].'\');');
+    $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(time_id,date_string,log_type,action,author,page_id,namespace) VALUES('.time().', \''.enano_date('d M Y h:i a').'\', \'page\', \'create\', \''.$session->username.'\', \''.$urlname.'\', \''.$_POST['namespace'].'\');');
     if ( !$q )
     {
       $db->_die('The page log could not be updated.');
@@ -333,6 +333,8 @@
 {
   // This should be an easy one
   global $db, $session, $paths, $template, $plugins; // Common objects
+  global $lang;
+  
   $template->header();
   $sz = sizeof($paths->pages) / 2;
   echo '<p>' . $lang->get('pagetools_specialpages_blurb') . '</p><div class="tblholder"><table border="0" width="100%" cellspacing="1" cellpadding="4">';