Skip to content

Commit

Permalink
Renamed cookieSetLifetime to setCookieLifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Oct 15, 2024
1 parent ac8ecb8 commit 019849b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function clearCacheConfigurationFilesAccessLevelVerification()
/**
* Set the admin's session lifetime based on config
*/
public function cookieSetLifetime(Varien_Event_Observer $observer): void
public function setCookieLifetime(Varien_Event_Observer $observer): void
{
/** @var Mage_Core_Model_Session $session */
$session = Mage::getSingleton('adminhtml/session');
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<observers>
<adminhtml_session_before_renew_cookie>
<class>adminhtml/observer</class>
<method>cookieSetLifetime</method>
<method>setCookieLifetime</method>
</adminhtml_session_before_renew_cookie>
</observers>
</session_before_renew_cookie>
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Customer/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function actionUpgradeCustomerPassword($observer)
/**
* Set the customer's or guest's session time based on config
*/
public function cookieSetLifetime(Varien_Event_Observer $observer)
public function setCookieLifetime(Varien_Event_Observer $observer)
{
/** @var Mage_Core_Model_Session $session */
$session = Mage::getSingleton('customer/session');
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Customer/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
<observers>
<customer_session_before_renew_cookie>
<class>customer/observer</class>
<method>cookieSetLifetime</method>
<method>setCookieLifetime</method>
</customer_session_before_renew_cookie>
</observers>
</session_before_renew_cookie>
Expand Down

0 comments on commit 019849b

Please sign in to comment.