|
@@ 609-612 (lines=4) @@
|
| 606 |
|
$linkTools = []; |
| 607 |
|
$userName = $user->getName(); |
| 608 |
|
|
| 609 |
|
if ( $allowUserCss ) { |
| 610 |
|
$cssPage = Title::makeTitleSafe( NS_USER, $userName . '/common.css' ); |
| 611 |
|
$linkTools[] = Linker::link( $cssPage, $context->msg( 'prefs-custom-css' )->escaped() ); |
| 612 |
|
} |
| 613 |
|
|
| 614 |
|
if ( $allowUserJs ) { |
| 615 |
|
$jsPage = Title::makeTitleSafe( NS_USER, $userName . '/common.js' ); |
|
@@ 614-617 (lines=4) @@
|
| 611 |
|
$linkTools[] = Linker::link( $cssPage, $context->msg( 'prefs-custom-css' )->escaped() ); |
| 612 |
|
} |
| 613 |
|
|
| 614 |
|
if ( $allowUserJs ) { |
| 615 |
|
$jsPage = Title::makeTitleSafe( NS_USER, $userName . '/common.js' ); |
| 616 |
|
$linkTools[] = Linker::link( $jsPage, $context->msg( 'prefs-custom-js' )->escaped() ); |
| 617 |
|
} |
| 618 |
|
|
| 619 |
|
$defaultPreferences['commoncssjs'] = [ |
| 620 |
|
'type' => 'info', |
|
@@ 1152-1155 (lines=4) @@
|
| 1149 |
|
$linkTools[] = "<a target='_blank' href=\"$mplink\">$previewtext</a>"; |
| 1150 |
|
|
| 1151 |
|
# Create links to user CSS/JS pages |
| 1152 |
|
if ( $allowUserCss ) { |
| 1153 |
|
$cssPage = Title::makeTitleSafe( NS_USER, $user->getName() . '/' . $skinkey . '.css' ); |
| 1154 |
|
$linkTools[] = Linker::link( $cssPage, $context->msg( 'prefs-custom-css' )->escaped() ); |
| 1155 |
|
} |
| 1156 |
|
|
| 1157 |
|
if ( $allowUserJs ) { |
| 1158 |
|
$jsPage = Title::makeTitleSafe( NS_USER, $user->getName() . '/' . $skinkey . '.js' ); |
|
@@ 1157-1160 (lines=4) @@
|
| 1154 |
|
$linkTools[] = Linker::link( $cssPage, $context->msg( 'prefs-custom-css' )->escaped() ); |
| 1155 |
|
} |
| 1156 |
|
|
| 1157 |
|
if ( $allowUserJs ) { |
| 1158 |
|
$jsPage = Title::makeTitleSafe( NS_USER, $user->getName() . '/' . $skinkey . '.js' ); |
| 1159 |
|
$linkTools[] = Linker::link( $jsPage, $context->msg( 'prefs-custom-js' )->escaped() ); |
| 1160 |
|
} |
| 1161 |
|
|
| 1162 |
|
$display = $sn . ' ' . $context->msg( 'parentheses' ) |
| 1163 |
|
->rawParams( $context->getLanguage()->pipeList( $linkTools ) ) |