X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=ae914ba6050fdaa2de553f9ed14a0b12226b7a28;hb=19ffc0510b71096442de0456c805543378dd42d6;hp=fdd928ba1a1c7b64a226301fd8ca1a5fdfa78d79;hpb=39ff6e9ce9251fe69b56ba05ea7bdc1896f34de2;p=friendica.git diff --git a/src/App.php b/src/App.php index fdd928ba1a..6ec61db724 100644 --- a/src/App.php +++ b/src/App.php @@ -1,21 +1,18 @@ tag of every page. + * Inclusion is done in App->initHead(). + * The path can be absolute or relative to the Friendica installation base folder. + * + * @see initHead() + * + * @param string $path + */ + public function registerStylesheet($path) + { + $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path); + + $this->stylesheets[] = trim($url, '/'); + } + + /** + * Register a javascript file path to be included in the