Last active
December 7, 2017 15:21
-
-
Save helhum/dea162716d0fcb3f9a7d to your computer and use it in GitHub Desktop.
includeLibsWrapper for removed config.includeLibs functionality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page.1 = USER | |
page.1.userFunc = Helhum\IncludeLibsWrapper\IncludeLibsWrapper->includeLibs | |
page.1.includeLibs.hack = fileadmin/hackylib.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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