Skip to content

Instantly share code, notes, and snippets.

@helhum
Last active December 7, 2017 15:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save helhum/dea162716d0fcb3f9a7d to your computer and use it in GitHub Desktop.
Save helhum/dea162716d0fcb3f9a7d to your computer and use it in GitHub Desktop.
includeLibsWrapper for removed config.includeLibs functionality
page.1 = USER
page.1.userFunc = Helhum\IncludeLibsWrapper\IncludeLibsWrapper->includeLibs
page.1.includeLibs.hack = fileadmin/hackylib.php
<?php
namespace Helhum\IncludeLibsWrapper;
class IncludeLibsWrapper {
public function includeLibs($content, $conf) {
if (!empty($conf['includeLibs.'] && is_array($conf['includeLibs.']))) {
$GLOBALS['TSFE']->includeLibraries($conf['includeLibs.']);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment