23 private function getAmdName(
$name) {
24 if (preg_match(
'~^(js/)?(.+)\\.js\\z~',
$name,
$m)) {
30 if (0 !== strpos(
$name,
'js/')) {
36 if (pathinfo(
$name, PATHINFO_EXTENSION) !== null) {
53 $amdName = $this->getAmdName($viewName);
55 if (!empty($amdName)) {
56 $content = preg_replace(
'/^(\s*)define\(([^\'"])/m',
"\${1}define(\"$amdName\", \$2",
$content, 1);
if($guid==elgg_get_logged_in_user_guid()) $name
filter($viewName, $content)
Inserts the AMD name into $content and returns the new value.
$content
Set robots.txt action.