Changeset 16090
- Timestamp:
- 04/15/08 14:29:57 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/midcom.helper.replicator/exporter/staging2live.php
r16086 r16090 184 184 function _check_approval(&$object) 185 185 { 186 static $parent_check_stack = array(); 186 187 debug_push_class(__CLASS__, __FUNCTION__); 187 188 debug_add("Called for {$object->guid}"); … … 240 241 // Check the parent also, as that may be unapproved 241 242 $parent = $object->get_parent(); 242 if ($parent) 243 { 243 if ( is_object($parent) 244 && isset($parent->guid) 245 && !empty($parent->guid)) 246 { 247 array_push($parent_check_stack, $object->guid); 244 248 $this->exportability[$object->guid] = $this->is_exportable($parent, false); 245 249 array_pop($parent_check_stack); 246 250 if (!$this->exportability[$object->guid]) 247 251 { 248 252 // TODO: Uimessage, but how to give only one ?? 249 253 $GLOBALS['midcom_helper_replicator_logger']->log_object($object, 'Parent not approved, skipping'); 254 if (empty($parent_check_stack)) 255 { 256 // Empty stack means we're not inside parent recursion, thus we can raise an UIMessage 257 $_MIDCOM->load_library('midcom.helper.reflector'); 258 $ref = new midcom_helper_reflector($object); 259 $_MIDCOM->uimessages->add 260 ( 261 $this->_l10n->get('midcom.helper.replicator'), 262 sprintf 263 ( 264 $this->_l10n->get('%s %s could not be exported for replication because one of its parents is not approved'), 265 $ref->get_class_label(), 266 $ref->get_object_label($object) 267 ), 268 'warning' 269 ); 270 } 250 271 } 251 272 } branches/MidCOM_2_8/midcom.helper.replicator/locale/default.en.txt
r15832 r16090 56 56 ---STRINGEND 57 57 58 ---STRING http post transport 59 HTTP POST transport 60 ---STRINGEND 61 58 62 ---STRING imported 59 63 Imported to database … … 69 73 70 74 ---STRING mirroring subscription 71 Mirror 75 Mirroring Subscription 72 76 ---STRINGEND 73 77 … … 88 92 ---STRINGEND 89 93 94 ---STRING replication queue %s cannot be written by Apache user 95 Replication queue %s cannot be written by Apache user 96 ---STRINGEND 97 90 98 ---STRING replication queue %s does not exist 91 99 Replication queue %s does not exist 92 ---STRINGEND93 94 ---STRING replication queue %s cannot be written by Apache user95 Replication queue %s cannot be written by Apache user96 100 ---STRINGEND 97 101 … … 106 110 ---STRING staging2live subscription 107 111 Staging/live 112 ---STRINGEND 113 114 ---STRING staging2live subscription with type filter 115 Staging2live subscription with type filter 108 116 ---STRINGEND 109 117 … … 132 140 ---STRINGEND 133 141 134 ---STRING http post transport135 HTTP POST transport 142 ---STRING %s %s could not be exported for replication because one of its parents is not approved 143 %s %s could not be exported for replication because one of its parents is not approved 136 144 ---STRINGEND 137 145 138 ---STRING mirroring subscription139 Mirroring Subscription140 ---STRINGEND141 142 ---STRING staging2live subscription with type filter143 Staging2live subscription with type filter144 ---STRINGENDbranches/MidCOM_2_8/midcom.helper.replicator/locale/default.fi.txt
r13072 r16090 120 120 ---STRINGEND 121 121 122 ---STRING %s %s could not be exported for replication because one of its parents is not approved 123 %s %s ei voida replikoida koska jokin sen vanhemmista ei ole hyvÀksytty. 124 ---STRINGEND 125
