Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | * Constructor |
35 | 35 | */ |
36 | 36 | function __construct() { |
37 | | - global $wgHooks, $wgScriptPath; |
| 37 | + global $wgHooks, $wgExtensionAssetsPath; |
38 | 38 | $wgHooks['ParserFirstCallInit'][] = array( $this, 'parserFirstCallInit' ); |
39 | 39 | $wgHooks['BeforePageDisplay'][] = array( &$this, 'beforePageDisplay' ); |
40 | 40 | $wgHooks['GetLinkColours'][] = array( &$this, 'getLinkColoursHook' ); |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | $this->index_namespace = preg_quote( wfMsgForContent( 'proofreadpage_index_namespace' ), '/' ); |
55 | 55 | |
56 | 56 | /* Navigation icons */ |
57 | | - $path = $wgScriptPath . '/extensions/ProofreadPage'; |
| 57 | + $path = $wgExtensionAssetsPath . '/ProofreadPage'; |
58 | 58 | $this->prev_icon = Html::element( 'img', array( 'src' => $path . '/leftarrow.png', |
59 | 59 | 'alt' => wfMsg( 'proofreadpage_prevpage' ), |
60 | 60 | 'width' => 15, 'height' => 15 ) ); |
Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -776,7 +776,7 @@ |
777 | 777 | 'zoom-in': { |
778 | 778 | label: mw.msg( 'proofreadpage-button-zoom-in-label' ), |
779 | 779 | type: 'button', |
780 | | - icon: mw.config.get( 'wgScriptPath' ) + '/extensions/ProofreadPage/Button_zoom_in.png', |
| 780 | + icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/ProofreadPage/Button_zoom_in.png', |
781 | 781 | action: { |
782 | 782 | type: 'callback', |
783 | 783 | execute: function() { |
— | — | @@ -789,7 +789,7 @@ |
790 | 790 | 'zoom-out': { |
791 | 791 | label: mw.msg( 'proofreadpage-button-zoom-out-label' ), |
792 | 792 | type: 'button', |
793 | | - icon: mw.config.get( 'wgScriptPath' ) + '/extensions/ProofreadPage/Button_zoom_out.png', |
| 793 | + icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/ProofreadPage/Button_zoom_out.png', |
794 | 794 | action: { |
795 | 795 | type: 'callback', |
796 | 796 | execute: function() { |
— | — | @@ -802,7 +802,7 @@ |
803 | 803 | 'reset-zoom': { |
804 | 804 | label: mw.msg( 'proofreadpage-button-reset-zoom-label' ), |
805 | 805 | type: 'button', |
806 | | - icon: mw.config.get( 'wgScriptPath' ) + '/extensions/ProofreadPage/Button_examine.png', |
| 806 | + icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/ProofreadPage/Button_examine.png', |
807 | 807 | action: { |
808 | 808 | type: 'callback', |
809 | 809 | execute: function() { |
— | — | @@ -818,7 +818,7 @@ |
819 | 819 | 'toggle-visibility': { |
820 | 820 | label: mw.msg( 'proofreadpage-button-toggle-visibility-label' ), |
821 | 821 | type: 'button', |
822 | | - icon: mw.config.get( 'wgScriptPath' ) + '/extensions/ProofreadPage/button_category_plus.png', |
| 822 | + icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/ProofreadPage/button_category_plus.png', |
823 | 823 | action: { |
824 | 824 | type: 'callback', |
825 | 825 | execute: function() { |
— | — | @@ -829,7 +829,7 @@ |
830 | 830 | 'toggle-layout': { |
831 | 831 | label: mw.msg( 'proofreadpage-button-toggle-layout-label' ), |
832 | 832 | type: 'button', |
833 | | - icon: mw.config.get( 'wgScriptPath' ) + '/extensions/ProofreadPage/Button_multicol.png', |
| 833 | + icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/ProofreadPage/Button_multicol.png', |
834 | 834 | action: { |
835 | 835 | type: 'callback', |
836 | 836 | execute: function() { |
— | — | @@ -844,7 +844,6 @@ |
845 | 845 | |
846 | 846 | var $edit = $( '#wpTextbox1' ); |
847 | 847 | if( typeof $edit.wikiEditor == 'function' ) { |
848 | | - console.log('hey hey'); |
849 | 848 | setTimeout(function() { |
850 | 849 | $edit.wikiEditor( 'addToToolbar', { |
851 | 850 | 'sections': { |