Index: tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.php |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | private function _gqbAddScripts() { |
84 | 84 | global $wgExtensionAssetsPath; |
85 | 85 | |
86 | | - $eDir = $wgExtensionAssetsPath . '/' . basename(dirname(__FILE__)); |
| 86 | + $eDir = $wgExtensionAssetsPath . '/' . basename(dirname(__FILE__)) . '/'; |
87 | 87 | self::$_page->includeJQuery(); |
88 | 88 | self::$_page->addScript( '<script type="text/javascript" src="' |
89 | | - . $eDir . '/js/jquery.lightbox-0.5.min.js"></script>' . PHP_EOL ); |
| 89 | + . $eDir . 'js/jquery.lightbox-0.5.min.js"></script>' . PHP_EOL ); |
90 | 90 | self::$_page->addExtensionStyle( $eDir . '/css/jquery.lightbox-0.5.css', 'screen' ); |
91 | 91 | self::$_page->addInlineScript('$j(document).ready(function(){ |
92 | 92 | $j("div.gallerybox").each(function(el){ |
— | — | @@ -121,7 +121,6 @@ |
122 | 122 | * approach but there doesn't seem to be an alternative approach.) |
123 | 123 | */ |
124 | 124 | private function _gqbReplaceHref() { |
125 | | - // determine path info |
126 | 125 | global $wgArticlePath; |
127 | 126 | $articlePath = substr( $wgArticlePath, 0, strpos( $wgArticlePath, '$1' ) ); |
128 | 127 | $pattern = '~href="'.$articlePath.'([^"]+)"\s*class="image"~'; |