Invenzzia »

Pages: [1]   Go Down
  Print  
Author Topic: OPT: apply in 1.1.4  (Read 1089 times)
Description: it just doesn't work at all
0 Members and 1 Guest are viewing this topic.
Redliner
User

Offline Offline

Posts: 2



View Profile WWW
« on: May 19, 2008, 12:46:38 »

I upgraded from 1.1.3 and function apply() stopped working

even in examples:
/examples/example4.php
(the last one!)

I receive error:
Undefined index: [here is my language block with '%s' in it]
in: \opt\ opt.functions.php

please let me know whent it's working again ;)

I'm eager to try the new 1.1.4 but this is a blocker.
Logged
Zyx
Your programmer
Administrator
User
*****
Offline Offline

Posts: 291



View Profile WWW
« Reply #1 on: May 20, 2008, 21:21:22 »

The problem is caused by the template compiler which stopped to recognize the "apply()" function correctly. Currently, I noticed that the following change helps (opt.compiler.php, line 1164):

Code:
$token = $this -> compileLanguageBlock($token, $state['prev'], @($phs[$pi]));

to

Code:
$token = $this -> compileLanguageBlock($token, $state['prev'], @($phs[$pi-1]));

However, I recommend to be careful for now. This line looked exactly the same, like in OPT 1.1.3, so the real reason is hidden somewhere else. I'll make an exact comparison of both versions tomorrow and once everything is fixed, OPT 1.1.5 will be available.

--- Update ---
OPT 1.1.5 is available. It fixes this bug :).
« Last Edit: May 21, 2008, 20:03:05 by Zyx » Logged

PozDrX, Zyx
---Invenzzia group---
Pages: [1]   Go Up
  Print  
 
Jump to:  

Subject Started by Replies Views Last post
abercrombie and fitch, the supremacy of law galardef 0 23 Last post April 24, 2012, 09:30:05
by galardef
louis vuitton tasche, senior spices rasmuscn 0 7 Last post May 14, 2012, 10:42:46
by rasmuscn
abercrombie,Guidelines For Private Student Loan Consolidation And Defaulted Loan galardef 0 64 Last post April 04, 2012, 06:05:59
by galardef
OPTv2: Problem z JS masterix 5 1278 Last post April 08, 2009, 19:02:18
by Zyx
abercrombie outlet, galardef 0 37 Last post April 04, 2012, 06:07:13
by galardef