When opening the calendar on a specific year, for example index.php?/categories/created-weekly-list-2021 we get:
Notice: Undefined property: Smarty_Internal_Undefined::$objMap in include/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 132
Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Method_GetVariable' <-- thrown in include/smarty/libs/sysplugins/smarty_internal_undefined.php on line 62
This is due to this line in include/calendar_base.class.php:
Indeed, the Smarty version (3.1.39) embedded in Piwigo 12 says about getVariable:
@deprecated since 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead.
And this function no longer exists in Smarty 4.1. So, let's replace it!
When opening the calendar on a specific year, for example `index.php?/categories/created-weekly-list-2021` we get:
> Notice: Undefined property: Smarty_Internal_Undefined::$objMap in include/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 132
>
> Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Method_GetVariable' <-- thrown in include/smarty/libs/sysplugins/smarty_internal_undefined.php on line 62
This is due to this line in `include/calendar_base.class.php`:
```
$existing = $template->smarty->getVariable('chronology_navigation_bars');
```
Indeed, the Smarty version (3.1.39) embedded in Piwigo 12 says about `getVariable`:
> @deprecated since 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead.
And this function no longer exists in Smarty 4.1. So, let's replace it!
<!-- github-sync-id:1375574121 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When opening the calendar on a specific year, for example
index.php?/categories/created-weekly-list-2021we get:This is due to this line in
include/calendar_base.class.php:Indeed, the Smarty version (3.1.39) embedded in Piwigo 12 says about
getVariable:And this function no longer exists in Smarty 4.1. So, let's replace it!