Skip to content

Commit aa36e00

Browse files
Stable
1 parent be5e1c8 commit aa36e00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php namespace x\anchor;
22

3+
function get() {
4+
\extract($GLOBALS, \EXTR_SKIP);
5+
\class_exists("\\Asset") && $state->is('page') && \Asset::set(__DIR__ . \D . 'index' . (\defined("\\TEST") && \TEST ? '.' : '.min.') . 'css', 10);
6+
}
7+
38
function page__content($content) {
49
if (!$content || (false === \stripos($content, '</h') && false === \stripos(\strtr($content, [
510
"'" => "",
@@ -48,11 +53,6 @@ function page__content($content) {
4853
}, $content);
4954
}
5055

51-
function get() {
52-
\extract($GLOBALS, \EXTR_SKIP);
53-
\class_exists("\\Asset") && $state->is('page') && \Asset::set(__DIR__ . \D . 'index' . (\defined("\\TEST") && \TEST ? '.' : '.min.') . 'css', 10);
54-
}
55-
5656
\Hook::set('get', __NAMESPACE__ . "\\get", -1);
5757
\Hook::set('page.content', __NAMESPACE__ . "\\page__content", 2.1); // Run this hook before `x\t_o_c\page__content` hook
5858

0 commit comments

Comments
 (0)