projects
/
mw_sourceml
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c409a5
)
nom falcultatif des fichiers (nom = extention par defaut)
sourceml.0.16.3
author
dj3c1t
<dj3c1t@free.fr>
Sun, 20 Oct 2013 11:57:45 +0000
(13:57 +0200)
committer
dj3c1t
<dj3c1t@free.fr>
Sun, 20 Oct 2013 11:57:45 +0000
(13:57 +0200)
app/out/default/views/sources/source/documents.php
patch
|
blob
|
history
diff --git
a/app/out/default/views/sources/source/documents.php
b/app/out/default/views/sources/source/documents.php
index
df8d6a8
..
540057a
100644
(file)
--- a/
app/out/default/views/sources/source/documents.php
+++ b/
app/out/default/views/sources/source/documents.php
@@
-37,12
+37,14
@@
<?php endif; ?>
<div class="no_player"><!-- --></div>
<?php
<?php endif; ?>
<div class="no_player"><!-- --></div>
<?php
- $ext = explode(".", $document["url"]);
- if(count($ext) > 1) $ext = $ext[count($ext) - 1];
- else $ext = $document["url"];
- if(strlen($ext) > 16) $ext = "(...) ".substr($ext, -16);
+ if(!($nom = $document["nom"])){
+ $nom = explode(".", $document["url"]);
+ if(count($nom) > 1) $nom = $nom[count($nom) - 1];
+ else $nom = $document["url"];
+ if(strlen($nom) > 16) $nom = "(...) ".substr($nom, -16);
+ }
?>
?>
- <a href="<?php echo $document["url"] ?>" title="<?php echo $mw_out->esc_attr($document["nom"]); ?>"><?php echo $
ext
; ?></a>
+ <a href="<?php echo $document["url"] ?>" title="<?php echo $mw_out->esc_attr($document["nom"]); ?>"><?php echo $
nom
; ?></a>
</li>
<?php endforeach; ?>
</li>
<?php endforeach; ?>