Rev 1130 | Rev 1162 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1130 | Rev 1143 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | $file = self::realname($file); |
61 | $file = self::realname($file); |
62 | $file2 = preg_replace('/\.([^.]+)$/', '$'.OIDplus::getCurrentLang().'.\1', $file); |
62 | $file2 = preg_replace('/\.([^.]+)$/', '$'.OIDplus::getCurrentLang().'.\1', $file); |
63 | if (file_exists($file2)) $file = $file2; |
63 | if (file_exists($file2)) $file = $file2; |
64 | 64 | ||
65 | $cont = file_get_contents($file); |
65 | $cont = file_get_contents($file); |
- | 66 | if (!$cont) return ''; |
|
66 | 67 | ||
67 | list($html, $js, $css) = extractHtmlContents($cont); |
68 | list($html, $js, $css) = extractHtmlContents($cont); |
68 | $cont = ''; |
69 | $cont = ''; |
69 | if (!empty($js)) $cont .= "<script>\n$js\n</script>"; |
70 | if (!empty($js)) $cont .= "<script>\n$js\n</script>"; |
70 | if (!empty($css)) $cont .= "<style>\n$css\n</style>"; |
71 | if (!empty($css)) $cont .= "<style>\n$css\n</style>"; |