It’'s the same. Here’s the key part of Libertas:
The state exists for the common good–that is it’s purpose according to Catholic doctrine. While in general faith cannot be coerced, public authority’s overall care of the common good gives it the power to curtail even religious activity when doing so would advance the common good.
Dignitatis Humanae says the same thing. Over and over it discusses the limits public authority is to place on religious freedom being tied to the “public order” which it associates with the “common welfare” or common good (see par. 7 of DH).
The Catechism goes into more detail on this point, citing both paragraph 7 of DH and Pius IX’s encyclical Quanta Cura, which definitively condemns an absolute and unlimited religious freedom:
It should be noted, Pius IX did not give a “definitive no” to any freedom–he merely condemned an absolute freedom that was subject to no limits, human or divine. Bl. John Henry Newman, a contemporary of the condemnation. explains this well. See the last five paragraphs here:
newmanreader.org/works/anglicans/volume2/gladstone/section6.html
Back to the CCC paragraph 2109. Note how the limits to religious freedom are based on the common good, which is objective (not positivist) and includes the supernatural end of man (it is not naturalist) (See also CCC 1924 to 1925 for the elements of the common good, which includes the spiritual, as well St. John XXIII, Pacem in Terris, 57-59). Since public authority exists to ensure the common good (see CCC 1898), it has the power to limit false religious activity when it is a detriment to the common good. The limits necessary to preserve and promote the common good are going to vary depending on the circumstances, the make-up of a populace, etc.
As Catholic Dude noted, in the 19th century the main problem was the Liberal promotion of a liberty based on religious indifferentism and naturalism–it failed to take into account the good of the objective true religion or man’s supernatural well being. The Church still teaches that public authority should take into account the true religion when carrying out its mission (see CCC 2244 as one example). At Vatican II, the concern was instead that Communist and other regimes which were arbitrarily eradicating all religious activity, even if it was not objectively harmful to the common good or even helped the true notion of the common good. Both the Popes of the 19th century and Vatican II were applying the same principles, just to different circumstances (one, where there was too much freedom based on false principles, and the other when there was too little based on different false principles).