mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-15 03:35:17 +00:00
Fix fatal "Class 'DynamicPageListHooks' not found"
This commit is contained in:
parent
2c04dafb37
commit
2fe609148c
|
@ -961,15 +961,15 @@ class Parse {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register a hook to reset links which were produced during parsing DPL output.
|
// Register a hook to reset links which were produced during parsing DPL output.
|
||||||
if ( !isset( $wgHooks['ParserAfterTidy'] ) || !is_array( $wgHooks['ParserAfterTidy'] ) || !in_array( 'DynamicPageListHooks::endReset', $wgHooks['ParserAfterTidy'] ) ) {
|
if ( !isset( $wgHooks['ParserAfterTidy'] ) || !is_array( $wgHooks['ParserAfterTidy'] ) || !in_array( 'DPL\\DynamicPageListHooks::endReset', $wgHooks['ParserAfterTidy'] ) ) {
|
||||||
$wgHooks['ParserAfterTidy'][] = 'DynamicPageListHooks::endReset';
|
$wgHooks['ParserAfterTidy'][] = 'DPL\\DynamicPageListHooks::endReset';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( array_sum( $eliminate ) ) {
|
if ( array_sum( $eliminate ) ) {
|
||||||
// Register a hook to reset links which were produced during parsing DPL output
|
// Register a hook to reset links which were produced during parsing DPL output
|
||||||
if ( !isset( $wgHooks['ParserAfterTidy'] ) || !is_array( $wgHooks['ParserAfterTidy'] ) || !in_array( 'DynamicPageListHooks::endEliminate', $wgHooks['ParserAfterTidy'] ) ) {
|
if ( !isset( $wgHooks['ParserAfterTidy'] ) || !is_array( $wgHooks['ParserAfterTidy'] ) || !in_array( 'DPL\\DynamicPageListHooks::endEliminate', $wgHooks['ParserAfterTidy'] ) ) {
|
||||||
$wgHooks['ParserAfterTidy'][] = 'DynamicPageListHooks::endEliminate';
|
$wgHooks['ParserAfterTidy'][] = 'DPL\\DynamicPageListHooks::endEliminate';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $eliminate['links'] ) && $eliminate['links'] ) {
|
if ( isset( $eliminate['links'] ) && $eliminate['links'] ) {
|
||||||
|
|
Loading…
Reference in a new issue