X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FDeveloper-How-To-Move-Classes-to-src.md;h=134c2a1f5ecaaaffa0dd7f6e530eda523816f22f;hb=391c5913227c7f62f19b4f08906b0b1b0b618b33;hp=ec86f02025f01b1300460336f87dd6f266579bd8;hpb=a76256e6e9a927299ff0c20aa6290872df6680cc;p=friendica.git diff --git a/doc/Developer-How-To-Move-Classes-to-src.md b/doc/Developer-How-To-Move-Classes-to-src.md index ec86f02025..134c2a1f5e 100644 --- a/doc/Developer-How-To-Move-Classes-to-src.md +++ b/doc/Developer-How-To-Move-Classes-to-src.md @@ -73,16 +73,16 @@ If there are only a handful of references to a single non-namespaced class, just ````php namespace Friendica\Core; ... -if (\dbm::is_result($r)) { +if (\DBM::is_result($r)) { ... } ```` ````php namespace Friendica\Core; -use \dbm; +use Friendica\Database\DBM; -if (dbm::is_result($r)) { +if (DBM::is_result($r)) { ... } ```` @@ -99,6 +99,9 @@ Howevever, this tool isn't bullet-proof, and a staging install of Friendica is r Most of Friendica processes are run in the background, so make sure to turn on your debug log to check for errors that wouldn't show up while simply browsing Friendica. +Check the class file for any magic constant `__FILE__` or `__DIR__`, as their value changed since you moved the class in the file tree. +Most of the time it's used for debugging purposes but there can be instances where it's used to create cache folders for example. + ## Related * [Class autoloading](help/autoloader)