Forums / Cotonti / Support / Global $db_pages in localhost is null?

Trustmaster
#36968 2013-02-05 14:34

The cause of the problem lays in the execution order. The availability of globals/functions depends on in which order files are required and the code is executed. Enabling/disabling cache affects this flow as well.

As plugin developers we prefer to require APIs we want explicitly every time we need it, because it is better than relying on some other plugin to do it for us, which simply might not be present.

May the Source be with you!