]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Merge branch 'file_general_type_hook' of github.com:lorea/Elgg
authorSem <sembrestels@riseup.net>
Thu, 5 Apr 2012 16:38:32 +0000 (18:38 +0200)
committerSem <sembrestels@riseup.net>
Thu, 5 Apr 2012 16:38:32 +0000 (18:38 +0200)
1  2 
mod/file/start.php

index ad88469c8a10dc5f6ce33609ef416f730b522823,8c8883b6e721cf2e651db1153bf2ab179330e31d..6c1501bd28d6e540a1e03be2c65d2cefcbeaeaa8
@@@ -232,11 -232,11 +232,15 @@@ function file_owner_block_menu($hook, $
   * @return string The overall type
   */
  function file_get_simple_type($mimetype) {
+       
+       if($type = elgg_trigger_plugin_hook('file_simple_type', 'object', $params, null)) {
+               return $type;
+       }
  
 +      if($type = elgg_trigger_plugin_hook('file_simple_type', 'object', $params, null)) {
 +              return $type;
 +      }
 +
        switch ($mimetype) {
                case "application/msword":
                        return "document";