r81514 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81513‎ | r81514 | r81515 >
Date:13:47, 4 February 2011
Author:krinkle
Status:deferred
Tags:
Comment:
Modified paths:
  • /trunk/tools/wp-photocommons/search.php (modified) (history)

Diff [purge]

Index: trunk/tools/wp-photocommons/search.php
@@ -1,16 +1,16 @@
22 <?php
3 -$path = dirname($_SERVER['PHP_SELF']);
4 -// Standalone is used to develop this page directly, without having to load
5 -// it in admin.
6 -$standalone = empty($_GET['standalone']);
 3+$path = dirname( $_SERVER['PHP_SELF'] );
 4+// Standalone is used to debug/test this page directly,
 5+// without having to the HEAD/BODY with it in admin.
 6+$standalone = empty( $_GET['standalone'] );
77
8 -if ($standalone) : ?>
 8+if ( $standalone ) : ?>
99 <!doctype html>
1010 <html>
1111 <head>
1212 <meta charset="utf-8" />
13 - <link rel="stylesheet" href="<?=$dir?>/css/ui-lightness/jquery-ui-1.8.5.custom.css" />
14 - <link rel="stylesheet" href="<?=$dir?>/css/jquery.suggestions.css" />
 13+ <link rel="stylesheet" href="<?php echo $dir; ?>/css/ui-lightness/jquery-ui-1.8.5.custom.css" />
 14+ <link rel="stylesheet" href="<?php echo $dir; ?>/css/jquery.suggestions.css" />
1515 <link rel="stylesheet" href="css/search.css" />
1616 </head>
1717 <body>
@@ -21,15 +21,15 @@
2222
2323 <ul id="wp-photocommons-results"></ul>
2424
25 - <img src="<? echo $path; ?>/img/loading.gif" style="display:none;" id="wp-photocommons-loading" />
 25+ <img src="<?php echo $path; ?>/img/loading.gif" style="display:none;" id="wp-photocommons-loading" />
2626
2727 <div id="wp-photocommons-images"></div>
2828
2929 <?php if ($standalone) : ?>
3030 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
31 - <script src="<? echo $path; ?>/js/jquery-ui-1.8.5.custom.min.js"></script>
32 - <script src="<? echo $path; ?>/js/search.js"></script>
33 - <script src="<? echo $path; ?>/js/jquery.suggestions.js"></script>
 31+ <script src="<?php echo $path; ?>/js/jquery-ui-1.8.5.custom.min.js"></script>
 32+ <script src="<?php echo $path; ?>/js/search.js"></script>
 33+ <script src="<?php echo $path; ?>/js/jquery.suggestions.js"></script>
3434 </body>
3535 </html>
3636 <?php endif; ?>
\ No newline at end of file

Status & tagging log