diff options
author | redmatrix <git@macgirvin.com> | 2016-05-24 20:49:23 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-24 20:49:23 -0700 |
commit | 80f2ba640ec528bd43db243122a69e765703b7c0 (patch) | |
tree | f1029b2b3143a501734bd49f00fbc95912044602 /include/plugin.php | |
parent | f9a295a23627cf272e14559b8a11e3780de43ea1 (diff) | |
download | volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.tar.gz volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.tar.bz2 volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.zip |
code cleanup
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x | include/plugin.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/plugin.php b/include/plugin.php index 0466360bb..6c108fcc5 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -500,7 +500,7 @@ function get_theme_info($theme){ * @return string */ function get_theme_screenshot($theme) { - $a = get_app(); + $exts = array('.png', '.jpg'); foreach($exts as $ext) { if(file_exists('view/theme/' . $theme . '/img/screenshot' . $ext)) @@ -521,7 +521,7 @@ function head_add_css($src, $media = 'screen') { } function head_remove_css($src, $media = 'screen') { - $a = get_app(); + $index = array_search(array($src, $media), App::$css_sources); if ($index !== false) unset(App::$css_sources[$index]); @@ -592,7 +592,7 @@ function head_add_js($src) { } function head_remove_js($src) { - $a = get_app(); + $index = array_search($src, App::$js_sources); if($index !== false) unset(App::$js_sources[$index]); @@ -633,7 +633,6 @@ function format_js_if_exists($source) { function theme_include($file, $root = '') { - $a = get_app(); // Make sure $root ends with a slash / if it's not blank if($root !== '' && $root[strlen($root)-1] !== '/') @@ -671,7 +670,7 @@ function theme_include($file, $root = '') { function get_intltext_template($s, $root = '') { - $a = get_app(); + $t = App::template_engine(); $template = $t->get_intltext_template($s, $root); @@ -680,7 +679,7 @@ function get_intltext_template($s, $root = '') { function get_markup_template($s, $root = '') { - $a = get_app(); + $t = App::template_engine(); $template = $t->get_markup_template($s, $root); return $template; |