Rev 426 | Rev 448 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 426 | Rev 429 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | $files[] = process_file(__DIR__ . '/oidplus_base.js'); |
63 | $files[] = process_file(__DIR__ . '/oidplus_base.js'); |
64 | 64 | ||
65 | # --- |
65 | # --- |
66 | 66 | ||
67 | function process_file($filename) { |
67 | function process_file($filename) { |
- | 68 | if (!file_exists($filename)) { |
|
- | 69 | return "console.error('Script file not found: $filename');"; |
|
- | 70 | } else { |
|
68 | $dir = dirname((strpos($filename, __DIR__.'/') === 0) ? substr($filename, strlen(__DIR__.'/')) : $filename); |
71 | $dir = dirname((strpos($filename, __DIR__.'/') === 0) ? substr($filename, strlen(__DIR__.'/')) : $filename); |
69 | $cont = file_get_contents($filename); |
72 | $cont = file_get_contents($filename); |
70 | 73 | ||
71 | // TODO: WHY???? DevTools failed to load SourceMap: Could not load content for http://localhost/oidplus/bootstrap.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE |
74 | // TODO: WHY???? DevTools failed to load SourceMap: Could not load content for http://localhost/oidplus/bootstrap.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE |
72 | $cont = str_replace("//# sourceMappingURL=", "//# sourceMappingURL=".$dir.'/', $cont); |
75 | $cont = str_replace("//# sourceMappingURL=", "//# sourceMappingURL=".$dir.'/', $cont); |
73 | 76 | ||
74 | return $cont."\n\n"; |
77 | return $cont."\n\n"; |
75 | } |
78 | } |
- | 79 | } |
|
76 | 80 | ||
77 | # --- |
81 | # --- |
78 | 82 | ||
79 | $manifests = OIDplus::getAllPluginManifests('*Pages', true); |
83 | $manifests = OIDplus::getAllPluginManifests('*Pages', true); |
80 | foreach ($manifests as $manifest) { |
84 | foreach ($manifests as $manifest) { |