github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

yui / phploader

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 40
    • 7
  • Source
  • Commits
  • Network (7)
  • Downloads (52)
  • Graphs
  • Tree: a7f7268

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master
  • Switch Tags (52)
    • phploader-49
    • phploader-48
    • phploader-47
    • phploader-46
    • phploader-45
    • phploader-44
    • phploader-43
    • phploader-42
    • phploader-41
    • phploader-40
    • phploader-39
    • phploader-38
    • phploader-37
    • phploader-36
    • phploader-35
    • phploader-34
    • phploader-33
    • phploader-32
    • phploader-31
    • phploader-30
    • phploader-29
    • phploader-28
    • phploader-27
    • phploader-26
    • phploader-25
    • phploader-24
    • phploader-23
    • phploader-22
    • phploader-21
    • phploader-20
    • phploader-19
    • phploader-18
    • phploader-17
    • phploader-16
    • phploader-15
    • phploader-14
    • phploader-13
    • phploader-12
    • phploader-11
    • phploader-10
    • phploader-9
    • phploader-8
    • phploader-7
    • phploader-6
    • phploader-5
    • phploader-4
    • phploader-3
    • phploader-2
    • phploader-1
    • phploader-0
    • 1.0.0b2
    • 1.0.0b1
  • Comments
  • Contributors
Sending Request…

Server side PHP loader for YUI files — Read more

  Cancel

http://developer.yahoo.com/yui/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Better handling of missing dependencies within the sort
cauld (author)
Sat Nov 21 14:45:34 -0800 2009
commit  a7f7268044d9a85213ad
tree    705a8e834007e48664a6
parent  9aba08223ea041500181
M phploader/loader.php 9 ••••
Txt phploader/loader.php
  • View file @ a7f7268
... ...
@@ -717,10 +717,12 @@ class YAHOO_util_Loader {
717 717
             $key .= YUI_OPTIONAL;
718 718
         }
719 719
         
  720
+        /*
720 721
         if (isset($this->depCache[$key])) {
721 722
             // $this->log("Using cache " . $mname);
722 723
             return $this->depCache[$key];
723 724
         }
  725
+        */
724 726
         
725 727
         $m = $this->modules[$mname];
726 728
         $mProvides = $this->getProvides($mname);
... ...
@@ -1087,7 +1089,7 @@ class YAHOO_util_Loader {
1087 1089
                 }
1088 1090
 
1089 1091
                 if (!empty($newreqs)) {
1090  
-                    foreach ($newreqs as $depname=>$depval) {     
  1092
+                    foreach ($newreqs as $depname=>$depval) {
1091 1093
                         //$this->log("accountedFor: " . var_export($this->accountedFor, true));
1092 1094
                         //$this->log("checking " . $depname . " newreqs: " . var_export($newreqs, true));
1093 1095
                         // check if the item is accounted for in the $done list
... ...
@@ -1115,10 +1117,15 @@ class YAHOO_util_Loader {
1115 1117
                                 $notdone = array_merge($tmp, $notdone);
1116 1118
                                 //$this->log("after merge: "  . var_export($notdone, true));
1117 1119
                             } else {
  1120
+                                /*
1118 1121
                                 $msg = "YUI_LOADER ERROR: requirement for " . $depname . " (needed for " . $name . ") not found when sorting";
1119 1122
                                 error_log($msg, 0);
1120 1123
                                 $notdone[$name] = $name;
1121 1124
                                 return array_merge($sorted, $notdone);
  1125
+                                */
  1126
+                                
  1127
+                                //Requirement was missing and not found within the current notdone list.  Add and try again.
  1128
+                                $notdone[$depname] = $depname;
1122 1129
                             }
1123 1130
                             
1124 1131
                             //$this->log("bouncing out of loops");

0 notes on commit a7f7268

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文