eZ Community » Projects » smartshort

smartshort

Wednesday 20 January 2010 - http://projects.ez.no/smartshort

The smartshort template operator shortens input strings like the shortentemplate operator but with a few important differences - most of the timeit will break at the end of a sentence and it will not break html tags.

» Visit project page    » Project members    » Reviews

Latest forum activity - Visit project's forums page

Thursday 04 August 2011 10:36:04 am

This seems quite a nice extension, but PHP reports some undefined variables:

<code>

Notice: PHP: E_NOTICE

Undefined index: <b>trim_type</b> in extension/smartshort/autoloads/eztemplatesmartshortoperator.php on line 95

Notice: PHP: E_NOTICE

Undefined variable: <b>outputlength</b> in extension/smartshort/autoloads/eztemplatesmartshortoperator.php on line 173

Notice: PHP: E_NOTICE

Undefined variable: <b>output</b> in extension/smartshort/autoloads/eztemplatesmartshortoperator.php on line 195

Notice: PHP: E_NOTICE

Undefined variable: <b>openTagArray</b> in extension/smartshort/autoloads/eztemplatesmartshortoperator.php on line 178

</code>

Has anyone made a version that solves these warnings?

 

Tuesday 09 August 2011 2:05:54 pm

Hi, I added variable initialization to get rid of the warnings.

Members - Visit project's team page
Real name:
Steven E Bailey
Country:
Netherlands 
#Posts:
563
  • Forum moderator
Project reviews - See all reviews

No review yet.

Proudly Developed with from