Project

General

Profile

Bug #139

Obsolete code in view member

Added by Vasily Bezruchkin about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
July 23, 2012
Due date:
% Done:

100%

Estimated time:

Description

There is a new function in our system that displays a link to View Item page. It's implemented using ia_url function. Please use everywhere, goToItem is obsolete. Example:

$iaCore->startHook('phpViewListingBeforeStart', array(
    'listing' => $account['id'],
    'item' => $account['item'],
    'title' => $account['fullname'],
    'url' => $iaCore->iaSmarty->goToItem(array(
        'item' => $account,
        'itemtype' => $account['item'],
        'noimage' => 'true'
    )),
    'desc' => $account['fullname']
));

should be changed to:

$iaCore->startHook('phpViewListingBeforeStart', array(
    'listing' => $account['id'],
    'item' => $account['item'],
    'title' => $account['fullname'],
    'url' => $iaCore->iaSmarty->ia_url(array(
        'data' => $account,
        'item' => $account['item'],
        'type' => 'url'
    )),
    'desc' => $account['fullname']
));

Please refactor the whole core + packages. Thanks

History

#1

Updated by Vasily Bezruchkin about 7 years ago

  • Target version changed from 2.2.2 to 2.2.1
#2

Updated by Vasily Bezruchkin about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed for core version. Revision [2550].

Also available in: Atom PDF