Hi,
Oh - "Just a relict of an ancient programming times". It's not ancient but wrong programming. To fix the warnings a programmer should check variable before use one. This is the right way to do it (it removes notices):
- Code: Select all
<?php if(isset($user) && $user->feed && $this->params->get('userFeed')): ?>
Also, I found other bad programming style. But in Wordpress "Writer" theme. You use utf8 in your templates but use one byte strings function to manipulate strings. For example in gk_writer/wp-content/themes/Writer/template.overlay.php you must use:
- Code: Select all
<?php echo mb_substr(get_the_excerpt(), 0, get_theme_mod('writer_overlay_text_limit', '200'),'UTF-8') .'...'; ?>
But your code use substr version. And it leads to wrong display output (questions in rumbus at the end of substring - incorrect utf8).
I used it in russian language and it was a real pain in @$ to fix your code. Finally I tried the Joomla version and unfortunately it is not ideal too.
Anyway thanks.