Ignore:
Timestamp:
Feb 14, 2009, 3:28:21 AM (15 years ago)
Author:
rvelices
Message:

merge 3145-3146 from trunk
Last (I hope) paranoic optims ...

  • move get_uysername and get_groupname from public to admin/functions.inc.php
  • optim in index.php
  • tags.tpl does not need smarty modifier included
  • move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/ws_functions.inc.php

    r3064 r3147  
    523523  }
    524524
    525   include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
    526 
    527525  $comm = array(
    528526    'author' => trim( stripslashes($params['author']) ),
     
    703701      )
    704702  {
    705     include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
    706703    $comment_post_data['author'] = $user['username'];
    707704    $comment_post_data['key'] = get_comment_post_key($params['image_id']);
     
    10421039      // last chance to make the directory writable
    10431040      @chmod($high_dir, 0777);
    1044      
     1041
    10451042      if (!is_writable($high_dir))
    10461043      {
     
    10481045      }
    10491046    }
    1050    
     1047
    10511048    secure_directory($high_dir);
    1052    
     1049
    10531050    // high resolution path, same name as web size file
    10541051    $high_path = sprintf(
     
    16181615          $current_rank_of[$cat_id] = 0;
    16191616        }
    1620        
     1617
    16211618        if ('auto' == $rank_on_category[$cat_id])
    16221619        {
Note: See TracChangeset for help on using the changeset viewer.