Now extension code must be inserted like {%ext,version=foo%}
authorRoland Häder <roland@mxchange.org>
Fri, 20 Nov 2009 17:21:05 +0000 (17:21 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 20 Nov 2009 17:21:05 +0000 (17:21 +0000)
inc/filters.php
templates/de/html/login_failed_js.tpl
templates/de/html/member/member_order_send.tpl
templates/de/html/member/member_surfbar_book_dynamic.tpl
templates/de/html/member/member_surfbar_book_static.tpl
templates/de/html/member/member_surfbar_edit_action_form.tpl
templates/de/html/page_header.tpl
templates/de/html/surfbar/surfbar_stopped.tpl
templates/de/html/uberwach/uberwach_snippet.tpl

index 4e9356c..89af47d 100644 (file)
@@ -478,12 +478,19 @@ function FILTER_COMPILE_EXTENSION ($code) {
 
                                // And continue with next entry
                                continue;
-                       } else {
+                       } elseif (substr($cmd, 0 , 3) == 'ext') {
+                               // Get the extension command
+                               $extCmd = explode(',', $cmd);
+                               $extCmd = $extCmd[1];
+
                                // Construct call-back function name
-                               $functionName = 'getExtension' . ucfirst(strtolower($cmd));
+                               $functionName = 'getExtension' . ucfirst(strtolower($extCmd));
 
                                // Construct call of the function
                                $replacer = "\" . call_user_func_array('" . $functionName . "', array('" . $matches[3][$key] . "', true)) . \"";
+                       } else {
+                               // Unknown command detected
+                               debug_report_bug('Unknown command ' . $cmd . ' detected.');
                        }
 
                        // Replace it and insert parameter for GET request
index ecc75f5..53908c0 100644 (file)
@@ -1 +1 @@
-<script src="{%url=js.php?js=cookies_disabled%}{%version=sql_patches%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=cookies_disabled%}{%ext,version=sql_patches%}" type="text/javascript"></script>
index 7c7b5b3..fae55ab 100644 (file)
@@ -1,5 +1,5 @@
 <form accept-charset="utf-8" id="form" action="{%url=modules.php?module=order&amp;order=$content%}" method="post" target="_parent" onsubmit="return Submit()">
 {--MEMBER_ORDER_PLEASE_WAIT_1--}<span id="counter" style="font-weight:bold">10</span>{--MEMBER_ORDER_PLEASE_WAIT_2--}<br />
 <input type="submit" class="member_submit" id="ok" name="ok" value="{--MEMBER_DO_ORDER--}" />
-<script type="text/javascript" src="{%url=js.php?js=order_send%}{%version=order%}"></script>
+<script type="text/javascript" src="{%url=js.php?js=order_send%}{%ext,version=order%}"></script>
 </form>
index 9b78058..c51dbde 100644 (file)
@@ -34,7 +34,7 @@
        </div>
 </div>
 
-<script src="{%url=js.php?js=surfbar_member_book%}{%version=surfbar%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=surfbar_member_book%}{%ext,version=surfbar%}" type="text/javascript"></script>
 </form>
 
 <span align="center" class="member_note" style="padding:5px">
index 51e131d..70445dd 100644 (file)
@@ -34,6 +34,6 @@
        </div>
 </div>
 
-<script src="{%url=js.php?js=surfbar_member_book%}{%version=surfbar%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=surfbar_member_book%}{%ext,version=surfbar%}" type="text/javascript"></script>
 
 </form>
index 288df31..f0708cb 100644 (file)
@@ -27,6 +27,6 @@
        </div>
 </div>
 
-<script src="{%url=js.php?js=surfbar_member_edit%}{%version=surfbar%}&amp;views_max=$content[views_max]&amp;limited=$content[limited]"
+<script src="{%url=js.php?js=surfbar_member_edit%}{%ext,version=surfbar%}&amp;views_max=$content[views_max]&amp;limited=$content[limited]"
  type="text/javascript"></script>
 </form>
index c40672b..dfd6add 100644 (file)
@@ -7,4 +7,4 @@
 <meta http-equiv="content-script-type" content="text/javascript" />
 <meta http-equiv="language" content="de" />
 
-<script src="{%url=js.php?js=jquery%}{%version=sql_patches%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=jquery%}{%ext,version=sql_patches%}" type="text/javascript"></script>
index 5b01934..d904d81 100644 (file)
@@ -11,5 +11,5 @@
        </div>
 </div>
 
-<script src="{%url=js.php?js=surfbar_stopped?}{%version=surfbar%}&amp;restart={?surfbar_restart_?me?}&amp;autostart=$content[autostart]"
+<script src="{%url=js.php?js=surfbar_stopped?}{%ext,version=surfbar%}&amp;restart={?surfbar_restart_?me?}&amp;autostart=$content[autostart]"
  type="text/javascript"></script>
index e990b39..4050da7 100644 (file)
@@ -3,6 +3,6 @@
 <script type="text/javascript">/* <![CDATA[ */
 au_ip='$content[REMOTE_ADDR]';
 /* ]]> */</script>
-<script src="{%url=js.php?js=uberwach%}{%version=uberwach%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=uberwach%}{%ext,version=uberwach%}" type="text/javascript"></script>
 <noscript><a href="http://www.uberwach.de/" rel="external" target="_blank" title="Aktion: &Uuml;berwach!">?mg src="http://www.uberwach.de/wanze.gif" alt="Aktion UBERWACH!" width="80" height="15" border="0" /></a></noscript>
 <!-- ende uberwach code -->