Completed
Push — 1.11.x ( c5cfcc...1cf9be )
by José
46:45 queued 17:54
created
plugin/rss/index.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,4 +53,4 @@
 block discarded – undo
53 53
         <div id="news" class="" style="min-height:300px;"></div>
54 54
     </div>
55 55
 </div>
56
-EOT;
56
+eot;
Please login to merge, or discard this patch.
plugin/search_course/lib/search_course_widget.class.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         <div class="well course_search">
185 185
         <div class="menusection">
186 186
             <h4>$search_course_label</h4>
187
-EOT;
187
+eot;
188 188
     }
189 189
 
190 190
     function display_footer()
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             <input type="text" name="search_term" class="span2" value="$search_term" />
210 210
             &nbsp;<input class="btn btn-default" type="submit" value="$search_label" />
211 211
         </form>
212
-EOT;
212
+eot;
213 213
         echo $form;
214 214
     }
215 215
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
                 <form action="$self?action=subscribe" method="post">
294 294
                     <input type="hidden" name="sec_token" value="$stok" />
295 295
                     <input type="hidden" name="subscribe" value="$code" />
296
-EOT;
296
+eot;
297 297
 
298 298
         $search_term = $this->post('search_term');
299 299
         if ($search_term)
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
             echo <<<EOT
303 303
                     <input type="hidden" name="search_course" value="1" />
304 304
                     <input type="hidden" name="search_term" value="$search_term" />
305
-EOT;
305
+eot;
306 306
         }
307 307
         echo '<input type="image" name="unsub" src="'.Display::returnIconPath('enroll.gif').'" alt="'.get_lang('Subscribe').'" />
308 308
                 '.get_lang('Subscribe').'
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 SELECT * FROM $course_table
347 347
                 WHERE ($course_fiter) AND (code LIKE '%$search_term%' OR visual_code LIKE '%$search_term%' OR title LIKE '%$search_term%' OR tutor_name LIKE '%$search_term%')
348 348
                 ORDER BY title, visual_code ASC
349
-EOT;
349
+eot;
350 350
 
351 351
         $result = array();
352 352
         $resultset = Database::query($sql);
Please login to merge, or discard this patch.
plugin/static/index.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,4 +22,4 @@
 block discarded – undo
22 22
         </div>
23 23
     </div>
24 24
 </div>
25
-EOT;
25
+eot;
Please login to merge, or discard this patch.
plugin/vchamilo/views/syncparams.controller.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             $result = Database::query($sql);
43 43
 
44 44
             if (Database::num_rows($result)) {
45
-                $sql = "UPDATE $table SET 
45
+                $sql = "update $table SET 
46 46
                             selected_value = '$value'
47 47
                       WHERE id = $settingId";
48 48
                 Database::query($sql);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     $result = $connection->fetchAll($sql);
104 104
 
105 105
                     if (!empty($result)) {
106
-                        $sql = "UPDATE $table SET selected_value = '$value' WHERE id = $settingId";
106
+                        $sql = "update $table SET selected_value = '$value' WHERE id = $settingId";
107 107
                         $connection->executeQuery($sql);
108 108
                     } else {
109 109
                         $connection->insert($table, $params);
Please login to merge, or discard this patch.
plugin/vchamilo/views/manage.controller.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             Display::addFlash(Display::return_message("Disabling instance"));
33 33
             // Make it not visible.
34 34
 
35
-            $sql = "UPDATE $table SET visible = 0 WHERE id IN ('$vidlist')";
35
+            $sql = "update $table SET visible = 0 WHERE id IN ('$vidlist')";
36 36
             Database::query($sql);
37 37
         }
38 38
         Virtual::redirect(api_get_path(WEB_PLUGIN_PATH).'vchamilo/views/manage.php');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     case 'enableinstances':
41 41
         if (!empty($vidlist)) {
42 42
             Display::addFlash(Display::return_message("Enabling instance"));
43
-            $sql = "UPDATE $table SET visible = 1 WHERE id IN ('$vidlist') ";
43
+            $sql = "update $table SET visible = 1 WHERE id IN ('$vidlist') ";
44 44
             Database::query($sql);
45 45
         }
46 46
         Virtual::redirect(api_get_path(WEB_PLUGIN_PATH).'vchamilo/views/manage.php');
@@ -69,14 +69,14 @@  discard block
 block discarded – undo
69 69
                     $absalternatecourse = Virtual::getConfig('vchamilo', 'course_real_root');
70 70
                     $coursedir = $absalternatecourse.$slug;
71 71
 
72
-                    Display::addFlash(Display::return_message("Deleting $coursedir"));
72
+                    Display::addFlash(Display::return_message("deleting $coursedir"));
73 73
 
74 74
                     removeDir($coursedir);
75 75
 
76 76
                     if ($absalternatehome = Virtual::getConfig('vchamilo', 'home_real_root')) {
77 77
                         $homedir = $absalternatehome.'/'.$slug;
78 78
 
79
-                        Display::addFlash(Display::return_message("Deleting $homedir"));
79
+                        Display::addFlash(Display::return_message("deleting $homedir"));
80 80
                         removeDir($homedir);
81 81
                     }
82 82
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                     if ($absalternatearchive = Virtual::getConfig('vchamilo', 'archive_real_root')) {
85 85
                         $archivedir = $absalternatearchive.'/'.$slug;
86 86
 
87
-                        Display::addFlash(Display::return_message("Deleting $archivedir"));
87
+                        Display::addFlash(Display::return_message("deleting $archivedir"));
88 88
                         removeDir($archivedir);
89 89
                     }
90 90
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                     if ($dir = Virtual::getConfig('vchamilo', 'upload_real_root')) {
93 93
                         $dir = $dir.'/'.$slug;
94 94
 
95
-                        Display::addFlash(Display::return_message("Deleting $dir"));
95
+                        Display::addFlash(Display::return_message("deleting $dir"));
96 96
                         removeDir($dir);
97 97
                     }
98 98
                 }
Please login to merge, or discard this patch.
plugin/vchamilo/lib/Virtual.php 1 patch
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
 
668 668
         // get the protocol free hostname
669 669
         Display::addFlash(
670
-            Display::return_message("Copying {$templateDir}/data/courses => $coursePath")
670
+            Display::return_message("copying {$templateDir}/data/courses => $coursePath")
671 671
         );
672 672
 
673 673
         copyDirTo(
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
         );
678 678
 
679 679
         Display::addFlash(
680
-            Display::return_message("Copying {$templateDir}/data/archive => $archivePath")
680
+            Display::return_message("copying {$templateDir}/data/archive => $archivePath")
681 681
         );
682 682
 
683 683
         copyDirTo(
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
         );
688 688
 
689 689
         Display::addFlash(
690
-            Display::return_message("Copying {$templateDir}/data/home => $homePath")
690
+            Display::return_message("copying {$templateDir}/data/home => $homePath")
691 691
         );
692 692
 
693 693
         copyDirTo(
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
 
699 699
         // Upload
700 700
         Display::addFlash(
701
-            Display::return_message("Copying {$templateDir}/data/upload => $uploadPath")
701
+            Display::return_message("copying {$templateDir}/data/upload => $uploadPath")
702 702
         );
703 703
 
704 704
         copyDirTo(
@@ -1029,13 +1029,13 @@  discard block
 block discarded – undo
1029 1029
         $sitename = Database::escape_string($data->sitename);
1030 1030
         $institution = Database::escape_string($data->institution);
1031 1031
 
1032
-        $sqls[] = "UPDATE {$settingstable} SET selected_value = '{$sitename}' 
1032
+        $sqls[] = "update {$settingstable} SET selected_value = '{$sitename}' 
1033 1033
                    WHERE variable = 'siteName' AND category = 'Platform' ";
1034 1034
 
1035
-        $sqls[] = "UPDATE {$settingstable} SET selected_value = '{$institution}' 
1035
+        $sqls[] = "update {$settingstable} SET selected_value = '{$institution}' 
1036 1036
                    WHERE variable = 'institution' AND category = 'Platform' ";
1037 1037
 
1038
-        $sqls[] = "UPDATE {$accessurltable} SET url = '{$data->root_web}' WHERE id = '1' ";
1038
+        $sqls[] = "update {$accessurltable} SET url = '{$data->root_web}' WHERE id = '1' ";
1039 1039
 
1040 1040
         foreach ($sqls as $sql) {
1041 1041
             Database::query($sql);
Please login to merge, or discard this patch.
plugin/vchamilo/cli/bulkcreatenodes.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
                 }
196 196
 
197 197
                 if ($oldrec = $NDB->get_record('settings_current', $params)) {
198
-                    ctrace("Updating {$settingrec->variable}|{$settingrec->subkey} to $configsetting->value\n");
198
+                    ctrace("updating {$settingrec->variable}|{$settingrec->subkey} to $configsetting->value\n");
199 199
                     $settingrec->id = $oldrec->id;
200 200
                     $NDB->update_record('settings_current', $settingrec, 'id');
201 201
                 }
Please login to merge, or discard this patch.
custompages/language.inc.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     $langs = array();
18 18
     foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $httplang) {
19 19
         $rawlang = explode(';q=', $httplang);
20
-        if (strpos($rawlang[0], '-') !== FALSE) {
20
+        if (strpos($rawlang[0], '-') !== false) {
21 21
             // We ignore the locale part, as in en-GB vs en-US
22 22
             $rawlang[0] = substr($rawlang[0], 0, strpos($rawlang[0], '-'));
23 23
         }
Please login to merge, or discard this patch.
main/session/resume_session.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $result = Database::query("DELETE FROM $tbl_session_rel_class
96 96
                              WHERE session_id='$sessionId' AND class_id=".intval($_GET['class']));
97 97
             $nbr_affected_rows = Database::affected_rows($result);
98
-            Database::query("UPDATE $tbl_session SET nbr_classes=nbr_classes-$nbr_affected_rows WHERE id='$sessionId'");
98
+            Database::query("update $tbl_session SET nbr_classes=nbr_classes-$nbr_affected_rows WHERE id='$sessionId'");
99 99
         }
100 100
 
101 101
         if (!empty($_GET['user'])) {
Please login to merge, or discard this patch.