diff options
author | Michael Hamann <michael@content-space.de> | 2012-07-07 23:06:12 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2012-07-08 19:00:46 +0200 |
commit | 3d6feb16238ee969cb2ba14a592124052f0c4bc2 (patch) | |
tree | 815e49a26b073b15694ad0ec9230c2753ed861c2 | |
parent | 9f2f766c00c72204f3a4bc723177d4fec53d8780 (diff) | |
download | rpg-3d6feb16238ee969cb2ba14a592124052f0c4bc2.tar.gz rpg-3d6feb16238ee969cb2ba14a592124052f0c4bc2.tar.bz2 |
Remove useless condition in p_get_metadata and add explanation
-rw-r--r-- | inc/parserutils.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 25d7cf131..55b451c76 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -318,8 +318,9 @@ function p_get_metadata($id, $key='', $render=METADATA_RENDER_USING_CACHE){ // only update the file when the metadata has been changed if ($meta == $old_meta || p_save_metadata($id, $meta)) { // store a timestamp in order to make sure that the cachefile is touched + // this timestamp is also stored when the meta data is still the same $cachefile->storeCache(time()); - } elseif ($meta != $old_meta) { + } else { msg('Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.',-1); } } |