Skip to content

Instantly share code, notes, and snippets.

@cmb69

cmb69/.diff Secret

Created August 18, 2019 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmb69/902ff3b9c2260510b3ce3f8e662ee045 to your computer and use it in GitHub Desktop.
Save cmb69/902ff3b9c2260510b3ce3f8e662ee045 to your computer and use it in GitHub Desktop.
hi_Shutter_Reloaded deaktivieren
index.php | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/index.php b/index.php
index 4ef37c3..2571ad8 100644
--- a/index.php
+++ b/index.php
@@ -80,12 +80,13 @@
}
}
-
+
+ function no_hi_shutter() {}
+
if($plugin_cf['hi_shutter_reloaded']['autoinclude'] == '1'){
- if(!$su) {
- $c[0] .= hi_shutter($plugin_cf['hi_shutter_reloaded']['mode']);
- } else {
- $c[$s] .= hi_shutter($plugin_cf['hi_shutter_reloaded']['mode']);
+ $tmp = max($s, 0);
+ if (strpos($c[$tmp], 'no_hi_shutter') === false) {
+ $c[$tmp] .= hi_shutter($plugin_cf['hi_shutter_reloaded']['mode']);
}
}
?>
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment