Changeset 8844


Ignore:
Timestamp:
Jan 22, 2011, 10:12:48 PM (9 years ago)
Author:
rvelices
Message:
  • fix icon display on index page (calendar by post date)
  • remove unnecessary include_once
  • mysql functions simplification
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dblayer/functions_mysql.inc.php

    r8728 r8844  
    7878function pwg_get_db_version()
    7979{
    80   list($mysql_version) = pwg_db_fetch_row(pwg_query('SELECT VERSION();'));
    81  
    82   return $mysql_version;
     80  return mysql_get_server_info();
    8381}
    8482
     
    223221    return;
    224222  // depending on the MySQL version, we use the multi table update or N update queries
    225   if (count($datas) < 10 or version_compare(mysql_get_server_info(), '4.0.4') < 0)
    226   { // MySQL is prior to version 4.0.4, multi table update feature is not available
     223  if (count($datas) < 10)
     224  {
    227225    foreach ($datas as $data)
    228226    {
  • trunk/include/functions.inc.php

    r8802 r8844  
    814814  global $user;
    815815
    816   include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    817 
    818816  $query = '
    819817SELECT element_id
  • trunk/include/functions_user.inc.php

    r8728 r8844  
    155155        );
    156156
    157     include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    158157    mass_inserts(USERS_TABLE, array_keys($insert), array($insert));
    159158
     
    185184    if (count($inserts) != 0)
    186185    {
    187       include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    188186      mass_inserts(USER_GROUP_TABLE, array('user_id', 'group_id'), $inserts);
    189187    }
     
    418416      pwg_query($query);
    419417
    420       include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    421418      mass_inserts
    422419      (
     
    10231020    }
    10241021
    1025     include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    10261022    mass_inserts(USER_INFOS_TABLE, array_keys($inserts[0]), $inserts);
    1027 
    10281023  }
    10291024}
  • trunk/themes/default/template/index.tpl

    r8774 r8844  
    5151{if isset($U_MODE_POSTED)}
    5252                <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    53                         <span class="pwg-icon pwg-icon-camera-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span>
     53                        <span class="pwg-icon pwg-icon-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span>
    5454                </a>{/strip}</li>
    5555{/if}
Note: See TracChangeset for help on using the changeset viewer.