
Hi,
I get the following error when i use themler on a multilingual drupal 7 website:
Notice: Undefined variable: language_url in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php).
Notice: Trying to get property of non-object in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php).
I learned that language_url is a global variable of drupal. By simply declaring the global variable like this:
global $language_url;
in
function MyTheme_get_links_output($links, $is_comment = false, $is_readmore = false, $add_class = '', $attr = '')
in theme-methods.php
the problem is solved. However, every time i publish my theme after some changes, theme-methods.php gets overwritten and i have to apply my fix again.
Is this a bug that your developers can fix or am i doing something wrong here?
Hi, I get the following error when i use themler on a multilingual drupal 7 website: Notice: Undefined variable: language_url in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php). Notice: Trying to get property of non-object in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php). I learned that language_url is a global variable of drupal. By simply declaring the global variable like this: global $language_url; in `function MyTheme_get_links_output($links, $is_comment = false, $is_readmore = false, $add_class = '', $attr = '') ` in theme-methods.php the problem is solved. However, every time i publish my theme after some changes, theme-methods.php gets overwritten and i have to apply my fix again. Is this a bug that your developers can fix or am i doing something wrong here?