? Success

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
27 Sep 2020

Summary of Changes

Bootstrapping Joomla using the cms.php file is deprecated

However bootstrap.php and cms.php contain the same content, the only difference is that cms.php has the code to raise a deprecated notice.

HOWEVER the two files are NOT the same, and therefore calling cms.php is NOT THE SAME as calling bootstrap.php as changes are not being made to keep both files in sync (Eg: the following code is missing from cms.php)

// Register the PasswordHash library.
JLoader::register('PasswordHash', JPATH_PLATFORM . '/phpass/PasswordHash.php');

Testing Instructions

Try to bootstrap Joomla using cms.php
Try to bootstrap Joomla using bootstrap.php

Actual result BEFORE applying this Pull Request

bootstrap Joomla using cms.php would not register the PasswordHash library.

Expected result AFTER applying this Pull Request

bootstrap Joomla using cms.php would register the PasswordHash library.

AND future changes will be made in bootstrap.php and not forgotten about and synced to cms.php

Documentation Changes Required

None, the deprecation (I assume) is already documented...

avatar PhilETaylor PhilETaylor - open - 27 Sep 2020
avatar PhilETaylor PhilETaylor - change - 27 Sep 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2020
Category Libraries
avatar ceford
ceford - comment - 28 Sep 2020

Not sure exactly how to bootstrap using different methods - my inexperience. However, I applied the patch and saw that cms.php calls the deprecation notice and then requires bootstrap.php - looks good.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30789.

avatar PhilETaylor
PhilETaylor - comment - 25 Feb 2021

Closing as no interest and now conflicts.

avatar PhilETaylor PhilETaylor - change - 25 Feb 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-02-25 14:22:57
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 25 Feb 2021

Add a Comment

Login with GitHub to post a comment