[op5-users] php 5.3.x patch

Patrik Båt Patrik.Bat at cypoint.se
Thu Nov 26 10:49:53 CET 2009


Split is deprecated, use explode instead.

Patch here... to ninja.

--- /monitor/git/ninja/application/views/themes/default/template.php               2009-11-19 15:23:24.000000000 +0100
+++ /monitor/op5/ninja/application/views/themes/default/template.php         2009-11-26 10:44:15.000000000 +0100
@@ -85,12 +85,12 @@
                                                                                <ul>
                                                                                <?php
                                                                                if (isset($breadcrumb) && !empty($breadcrumb)){
-                                                                                              $link = split(' » ',$breadcrumb);
+                                                                                             $link = explode(' » ',$breadcrumb);
                                                                                                for($i = 0; $i < count($link); $i++) {
                                                                                                                echo '<li>'.$link[$i].'</li>';
                                                                                                }
                                                                                } elseif (isset($title)) {
-                                                                                              $link = split(' » ',$title);
+                                                                                             $link = explode(' » ',$title);
                                                                                                for($i = 0; $i < count($link); $i++) {
                                                                                                                echo '<li>'.$link[$i].'</li>';
                                                                                                }
@@ -183,4 +183,4 @@
                                                <!--<p>Rendered in {execution_time} seconds, using {memory_usage} of memory</p> -->
                                </div>
                </body>
-</html>
\ No newline at end of file
+</html>

--
Patrik Båt

UNIX System Administrator



Cypoint IT Services AB
Sehlstedtsgatan 9
P.O Box 29132
SE-100 52 Stockholm
http://www.cypoint.se

Phone +46 (0)8 545 87 300
Direct +46 (0)8 545 87 326
Mobile +46 (0)733 207 326

Fax +46 (0)8 545 87 310
e-mail: patrik.bat at cypoint.se



This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please uphold strict confidentiality and neither read, copy, or otherwise make use of their content in any way and notify sender immediately -- by replying to this message or by sending an e-mail -- and destroy all copies of this message and any attachments. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.op5.com/pipermail/op5-users/attachments/20091126/b6e28df4/attachment.html 


More information about the op5-users mailing list